Update of /cvsroot/nice/Nice/src/bossa/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv5125/F:/nice/src/bossa/parser
Modified Files:
Parser.jj
Log Message:
Require a default value for global variables.
Index: Parser.jj
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v
retrieving revision 1.203
retrieving revision 1.204
diff -C2 -d -r1.203 -r1.204
*** Parser.jj 8 Aug 2003 21:47:58 -0000 1.203
--- Parser.jj 22 Aug 2003 13:36:40 -0000 1.204
***************
*** 1379,1389 ****
( "var" {constant = false;} | "let" )
t=monotype() name=ident()
! [ "="
! ( LOOKAHEAD(funExpLookahead())
! value=funExp()
! |
! value=SideEffectFreeExpression()
! )
! ]
";"
{ return new GlobalVarDeclaration(name,t,value,constant); }
--- 1379,1388 ----
( "var" {constant = false;} | "let" )
t=monotype() name=ident()
! "="
! ( LOOKAHEAD(funExpLookahead())
! value=funExp()
! |
! value=SideEffectFreeExpression()
! )
";"
{ return new GlobalVarDeclaration(name,t,value,constant); }
|