From: <fwi...@us...> - 2008-06-17 02:47:22
|
Revision: 4661 http://jython.svn.sourceforge.net/jython/?rev=4661&view=rev Author: fwierzbicki Date: 2008-06-16 19:47:21 -0700 (Mon, 16 Jun 2008) Log Message: ----------- break and continue only newed in Python.g Modified Paths: -------------- branches/asm/grammar/Python.g branches/asm/grammar/PythonWalker.g Modified: branches/asm/grammar/Python.g =================================================================== --- branches/asm/grammar/Python.g 2008-06-17 02:34:20 UTC (rev 4660) +++ branches/asm/grammar/Python.g 2008-06-17 02:47:21 UTC (rev 4661) @@ -707,12 +707,12 @@ //break_stmt: 'break' break_stmt : BREAK - -> ^(BREAK) + -> ^(BREAK<Break>[$BREAK]) ; //continue_stmt: 'continue' continue_stmt : CONTINUE - -> ^(CONTINUE) + -> ^(CONTINUE<Continue>[$CONTINUE]) ; //return_stmt: 'return' [testlist] Modified: branches/asm/grammar/PythonWalker.g =================================================================== --- branches/asm/grammar/PythonWalker.g 2008-06-17 02:34:20 UTC (rev 4660) +++ branches/asm/grammar/PythonWalker.g 2008-06-17 02:47:21 UTC (rev 4661) @@ -558,13 +558,13 @@ break_stmt : BREAK { - $stmts::statements.add(new Break($BREAK)); + $stmts::statements.add($BREAK); } ; continue_stmt : CONTINUE { - $stmts::statements.add(new Continue($CONTINUE)); + $stmts::statements.add($CONTINUE); } ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |