From: <fwi...@us...> - 2008-08-14 02:00:03
|
Revision: 5175 http://jython.svn.sourceforge.net/jython/?rev=5175&view=rev Author: fwierzbicki Date: 2008-08-14 02:00:01 +0000 (Thu, 14 Aug 2008) Log Message: ----------- Add EOF to single_input. Modified Paths: -------------- branches/asm/grammar/Python.g Modified: branches/asm/grammar/Python.g =================================================================== --- branches/asm/grammar/Python.g 2008-08-14 00:35:01 UTC (rev 5174) +++ branches/asm/grammar/Python.g 2008-08-14 02:00:01 UTC (rev 5175) @@ -287,9 +287,9 @@ } //single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE -single_input : NEWLINE? -> ^(Interactive) - | simple_stmt -> ^(Interactive simple_stmt) - | compound_stmt NEWLINE -> ^(Interactive compound_stmt) +single_input : NEWLINE* EOF -> ^(Interactive) + | simple_stmt NEWLINE* EOF -> ^(Interactive simple_stmt) + | compound_stmt NEWLINE+ EOF -> ^(Interactive compound_stmt) ; //file_input: (NEWLINE | stmt)* ENDMARKER This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |