From: <fwi...@us...> - 2009-08-16 03:04:18
|
Revision: 6674 http://jython.svn.sourceforge.net/jython/?rev=6674&view=rev Author: fwierzbicki Date: 2009-08-16 03:04:08 +0000 (Sun, 16 Aug 2009) Log Message: ----------- Fix col_offset for some NOT expressions. Modified Paths: -------------- trunk/jython/grammar/Python.g Modified: trunk/jython/grammar/Python.g =================================================================== --- trunk/jython/grammar/Python.g 2009-08-16 02:55:25 UTC (rev 6673) +++ trunk/jython/grammar/Python.g 2009-08-16 03:04:08 UTC (rev 6674) @@ -1080,7 +1080,7 @@ //not_test: 'not' not_test | comparison not_test [expr_contextType ctype] returns [Token leftTok] - : NOT nt=not_test[ctype] {$leftTok = $nt.leftTok;} + : NOT nt=not_test[ctype] -> ^(NOT<UnaryOp>[$NOT, unaryopType.Not, actions.castExpr($nt.tree)]) | comparison[ctype] {$leftTok = $comparison.leftTok;} ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |