[Nice-commit] Nice/src/bossa/parser Parser.jj,1.311,1.312
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-03-07 17:11:37
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18310/src/bossa/parser Modified Files: Parser.jj Log Message: Allow value returns in void methods. We don't need to distinguish between real and "fake" (sugared) returns. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.311 retrieving revision 1.312 diff -C2 -d -r1.311 -r1.312 *** Parser.jj 22 Feb 2005 12:53:16 -0000 1.311 --- Parser.jj 7 Mar 2005 17:10:52 -0000 1.312 *************** *** 1350,1354 **** ( exp=Expression() ";" ! { code = bossa.syntax.dispatch.createReturnStmt(exp, /* fake */ true); } | {Statement res;} --- 1350,1354 ---- ( exp=Expression() ";" ! { code = bossa.syntax.dispatch.createReturnStmt(exp); } | {Statement res;} |