[IronPython] Parse error on EOF?
Nick Bastin
nbastin at opnet.com
Fri Aug 13 18:30:03 CEST 2004
Has anyone seen this before:
IronPython.Objects.PythonSyntaxError: unexpected token <eof> at
/Users/nbastin/Desktop/bj.py:168
in <0x00278> IronPython.AST.Parser:parsePrimary ()
in <0x00028> IronPython.AST.Parser:parsePower ()
in <0x00198> IronPython.AST.Parser:parseFactor ()
in <0x0004c> IronPython.AST.Parser:parseExpr (int)
in <0x00020> IronPython.AST.Parser:parseExpr ()
in <0x00040> IronPython.AST.Parser:parseComparison ()
in <0x000a8> IronPython.AST.Parser:parseNotTest ()
in <0x00028> IronPython.AST.Parser:parseAndTest ()
in <0x00050> IronPython.AST.Parser:parseTest ()
in <0x00090> IronPython.AST.Parser:parseTestList (bool&)
in <0x00058> IronPython.AST.Parser:parseTestListAsExpr ()
in <0x00088> IronPython.AST.Parser:parseExprStmt ()
in <0x00370> IronPython.AST.Parser:parseSmallStmt ()
in <0x00048> IronPython.AST.Parser:parseSimpleStmt ()
in <0x00114> IronPython.AST.Parser:parseStmt ()
in <0x000bc> IronPython.AST.Parser:parseSuite ()
in <0x000bc> IronPython.AST.Parser:parseFuncDef ()
in <0x000f4> IronPython.AST.Parser:parseStmt ()
in <0x0009c> IronPython.AST.Parser:parseFileInput ()
in <0x00058> IronPython.Objects.Importer:LoadFromSource
(string,string,IronPython.Objects.List)
in <0x00160> IronPython.Objects.Importer:LoadFromPath
(string,string,IronPython.Objects.List)
in <0x00054> IronPython.Objects.Importer:LoadTop (string)
in <0x0010c> IronPython.Objects.Importer:ImportOne (string,bool)
in <0x00038> IronPython.Objects.module:Import (string,bool)
in <0x00044> IronPython.Objects.Ops:Import
(IronPython.Objects.module,string)
in <0x00064> input_4:Run (IronPython.Objects.Frame)
in <0x00260> IronPythonConsole.IronPython:DoInteractive ()
There's nothing special about this code, and I've tried encoding the
file just about every which way, (ASCII, UTF-8, etc.) but I still get
this error. I'm not entirely clear why <eof> is unexpected at this
point, since it's the end of the file...
--
Nick
More information about the Ironpython-users
mailing list