[Nice-commit] Nice/src/bossa/parser Parser.jj,1.265,1.266
Brought to you by:
bonniot
From: Bryn K. <xo...@us...> - 2004-09-22 21:10:59
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4907/src/bossa/parser Modified Files: Parser.jj Log Message: Allowing underscores in floating point numbers broke tokenizing of dotted identifiers with leading underscores in the trailing parts, such as "foo._bar". Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.265 retrieving revision 1.266 diff -C2 -d -r1.265 -r1.266 *** Parser.jj 17 Sep 2004 10:57:56 -0000 1.265 --- Parser.jj 22 Sep 2004 21:10:48 -0000 1.266 *************** *** 18,21 **** --- 18,23 ---- JAVA_UNICODE_ESCAPE = true; DEBUG_LOOKAHEAD = false; + DEBUG_PARSER = false; + DEBUG_TOKEN_MANAGER = false; STATIC = false; } *************** *** 275,279 **** < FLOATING_POINT_LITERAL: ["0"-"9"] (["0"-"9", "_"])* "." (["0"-"9", "_"])+ (<EXPONENT>)? (["f","F","d","D"])? ! | "." (["0"-"9", "_"])+ (<EXPONENT>)? (["f","F","d","D"])? | ["1"-"9"] (["0"-"9", "_"])* <EXPONENT> (["f","F","d","D"])? | ["1"-"9"] (["0"-"9", "_"])* (<EXPONENT>)? ["f","F","d","D"] --- 277,281 ---- < FLOATING_POINT_LITERAL: ["0"-"9"] (["0"-"9", "_"])* "." (["0"-"9", "_"])+ (<EXPONENT>)? (["f","F","d","D"])? ! | "." ["0"-"9"] (["0"-"9", "_"])* (<EXPONENT>)? (["f","F","d","D"])? | ["1"-"9"] (["0"-"9", "_"])* <EXPONENT> (["f","F","d","D"])? | ["1"-"9"] (["0"-"9", "_"])* (<EXPONENT>)? ["f","F","d","D"] |