From: <fwi...@us...> - 2009-07-05 22:59:02
|
Revision: 6511 http://jython.svn.sourceforge.net/jython/?rev=6511&view=rev Author: fwierzbicki Date: 2009-07-05 22:58:57 +0000 (Sun, 05 Jul 2009) Log Message: ----------- Now that PythonPartial has a separate Lexer, remove behavior related to variable "partial". Modified Paths: -------------- trunk/jython/grammar/Python.g Modified: trunk/jython/grammar/Python.g =================================================================== --- trunk/jython/grammar/Python.g 2009-07-05 22:34:44 UTC (rev 6510) +++ trunk/jython/grammar/Python.g 2009-07-05 22:58:57 UTC (rev 6511) @@ -1772,13 +1772,6 @@ } ; -STRINGPART - : {partial}?=> ('r'|'u'|'ur'|'R'|'U'|'UR'|'uR'|'Ur')? - ( '\'\'\'' ~('\'\'\'')* - | '"""' ~('"""')* - ) - ; - /** the two '"'? cause a warning -- is there a way to avoid that? */ fragment TRIQUOTE @@ -1804,18 +1797,12 @@ : '\\' ('\r')? '\n' (' '|'\t')* { $channel=HIDDEN; } ( c1=COMMENT | nl=NEWLINE { - if (!partial) { - emit(new CommonToken(NEWLINE,nl.getText())); - } + emit(new CommonToken(NEWLINE,nl.getText())); } | ) { if (input.LA(1) == -1) { - if (partial) { - emit(new CommonToken(TRAILBACKSLASH,"\\")); - } else { - throw new ParseException("unexpected character after line continuation character"); - } + throw new ParseException("unexpected character after line continuation character"); } } ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |