[IronPython] Parse error on EOF?

Dan Lash danlash at gmail.com
Fri Aug 13 19:31:05 CEST 2004


What is the code that you're trying to run? Does it run in interactive mode?


-Dan


On Fri, 13 Aug 2004 12:30:03 -0400, Nick Bastin <nbastin at opnet.com> wrote:
> 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
> 
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list