From: <fwi...@us...> - 2009-01-14 03:42:48
|
Revision: 5927 http://jython.svn.sourceforge.net/jython/?rev=5927&view=rev Author: fwierzbicki Date: 2009-01-14 03:42:42 +0000 (Wed, 14 Jan 2009) Log Message: ----------- Small fix to grammar -- a "print" by itself should have it's NL attribute set to true as CPython does. Because "false" doesn't make sense in this context (it would be a no-op), the compiler doesn't check, so it passed unnoticed. Modified Paths: -------------- trunk/jython/grammar/Python.g Modified: trunk/jython/grammar/Python.g =================================================================== --- trunk/jython/grammar/Python.g 2009-01-14 01:03:58 UTC (rev 5926) +++ trunk/jython/grammar/Python.g 2009-01-14 03:42:42 UTC (rev 5927) @@ -624,7 +624,7 @@ | RIGHTSHIFT t2=printlist2 -> ^(PRINT<Print>[$PRINT, actions.castExpr($t2.elts.get(0)), actions.castExprs($t2.elts, 1), $t2.newline]) | - -> ^(PRINT<Print>[$PRINT, null, new ArrayList<expr>(), false]) + -> ^(PRINT<Print>[$PRINT, null, new ArrayList<expr>(), true]) ) ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |