[Nice-commit] Nice/src/bossa/parser Parser.jj,1.240,1.241
Brought to you by:
bonniot
From: <ar...@us...> - 2004-02-24 15:26:48
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4880/F:/nice/src/bossa/parser Modified Files: Parser.jj Log Message: Print deprecated warning when using the 'Any' keyword. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.240 retrieving revision 1.241 diff -C2 -d -r1.240 -r1.241 *** Parser.jj 20 Feb 2004 13:10:30 -0000 1.240 --- Parser.jj 24 Feb 2004 15:20:16 -0000 1.241 *************** *** 561,564 **** --- 561,565 ---- TypeConstructor second; MonotypeVar id; + Token t; } { *************** *** 571,575 **** } | { boolean sure = false; } ! [ "Any" | "!" { sure = true; } ] id=monotypeVar() { if (sure) --- 572,579 ---- } | { boolean sure = false; } ! [ t="Any" { User.warning(Location.make(t), "The 'Any' keyword is deprecated, leave it away."); } ! | "!" { sure = true; } ! ] ! id=monotypeVar() { if (sure) |