From: <fwi...@us...> - 2008-09-01 04:21:35
|
Revision: 5278 http://jython.svn.sourceforge.net/jython/?rev=5278&view=rev Author: fwierzbicki Date: 2008-09-01 04:21:27 +0000 (Mon, 01 Sep 2008) Log Message: ----------- Check for EOF in file_input. Comment cleanup. Modified Paths: -------------- trunk/jython/grammar/Python.g trunk/jython/src/org/python/antlr/PythonTokenSource.java Modified: trunk/jython/grammar/Python.g =================================================================== --- trunk/jython/grammar/Python.g 2008-09-01 04:03:21 UTC (rev 5277) +++ trunk/jython/grammar/Python.g 2008-09-01 04:21:27 UTC (rev 5278) @@ -288,7 +288,7 @@ } : (NEWLINE | stmt {stypes.addAll($stmt.stypes);} - )* { + )* EOF { mtype = new Module($file_input.start, actions.makeStmts(stypes)); } ; Modified: trunk/jython/src/org/python/antlr/PythonTokenSource.java =================================================================== --- trunk/jython/src/org/python/antlr/PythonTokenSource.java 2008-09-01 04:03:21 UTC (rev 5277) +++ trunk/jython/src/org/python/antlr/PythonTokenSource.java 2008-09-01 04:21:27 UTC (rev 5278) @@ -324,7 +324,6 @@ return buf.toString(); } - //FIXME: needed this for the Antlr 3.1b interface change. public String getSourceName() { return filename; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |