Nice/src/bossa/parser Parser.jj,1.311,1.312

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
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;}



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.