[Nice-commit] Nice/src/bossa/parser Parser.jj,1.142,1.143
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-02-23 12:21:35
|
Update of /cvsroot/nice/Nice/src/bossa/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv23675/F:/nice/src/bossa/parser
Modified Files:
Parser.jj
Log Message:
Patterns can be negative integer literals.
Index: Parser.jj
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v
retrieving revision 1.142
retrieving revision 1.143
diff -C2 -d -r1.142 -r1.143
*** Parser.jj 23 Feb 2003 00:58:56 -0000 1.142
--- Parser.jj 23 Feb 2003 12:21:32 -0000 1.143
***************
*** 2142,2145 ****
--- 2142,2149 ----
(
"null" { res = NullExp.instance; }
+ | "-" res=intConstantExp()
+ { res = ConstantExp.makeNumber(
+ new LocatedString("-"+res.toString(), res.location()));
+ }
| res=intConstantExp()
| res=charConstantExp()
|