[Nice-commit] Nice/src/bossa/parser Parser.jj,1.169,1.170
Brought to you by:
bonniot
From: <bo...@us...> - 2003-05-09 13:37:14
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1:/tmp/cvs-serv7528/src/bossa/parser Modified Files: Parser.jj Log Message: Handle for loops, when the test expression is optional and defaults to true. Empty statements are now represented, together with their location in the source. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.169 retrieving revision 1.170 diff -C2 -d -r1.169 -r1.170 *** Parser.jj 6 May 2003 08:18:56 -0000 1.169 --- Parser.jj 9 May 2003 13:17:03 -0000 1.170 *************** *** 2480,2486 **** Statement EmptyStatement() : ! {} { ! ";" { return null; } } --- 2480,2486 ---- Statement EmptyStatement() : ! { Token t; } { ! t=";" { return new EmptyStmt(new Location(t)); } } |