[Nice-commit] Nice/src/bossa/parser Parser.jj,1.280,1.281
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-12-08 20:01:10
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6059/F:/nice/src/bossa/parser Modified Files: Parser.jj Log Message: Converted char and boolean ConstantExp. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.280 retrieving revision 1.281 diff -C2 -d -r1.280 -r1.281 *** Parser.jj 7 Dec 2004 17:33:56 -0000 1.280 --- Parser.jj 8 Dec 2004 20:00:57 -0000 1.281 *************** *** 1606,1611 **** { Token t; } { ! t = "true" { return ConstantExp.makeBoolean(true, makeLocation(t)); } ! | t = "false" { return ConstantExp.makeBoolean(false, makeLocation(t)); } } --- 1606,1611 ---- { Token t; } { ! t = "true" { return bossa.syntax.dispatch.createBooleanConstant(true, makeLocation(t)); } ! | t = "false" { return bossa.syntax.dispatch.createBooleanConstant(false, makeLocation(t)); } } *************** *** 1638,1642 **** { t = <CHARACTER_LITERAL> ! { return ConstantExp.makeChar (new LocatedString(t.image.substring(1, t.image.length() - 1), makeLocation(t))); --- 1638,1642 ---- { t = <CHARACTER_LITERAL> ! { return bossa.syntax.dispatch.createCharConstant (new LocatedString(t.image.substring(1, t.image.length() - 1), makeLocation(t))); |