[Nice-commit] Nice/src/bossa/parser Parser.jj,1.149,1.150
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-03-13 23:19:49
|
Update of /cvsroot/nice/Nice/src/bossa/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv18669/src/bossa/parser
Modified Files:
Parser.jj
Log Message:
Allow functions returning a value to be used as arguments where
functions returning void are expected.
Index: Parser.jj
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -d -r1.149 -r1.150
*** Parser.jj 12 Mar 2003 03:26:38 -0000 1.149
--- Parser.jj 13 Mar 2003 23:19:43 -0000 1.150
***************
*** 1257,1261 ****
exp=Expression() ";"
{
! code = new ReturnStmt(exp);
}
)
--- 1257,1261 ----
exp=Expression() ";"
{
! code = new ReturnStmt(exp, /* fake */ true);
}
)
|