Posted By:
Andreas_Morf
Posted On:
Wednesday, February 13, 2002 02:03 PM
Hello everyone If I run the GnuCParser provided on the antlr.org page get the following output: CMD>java Main test.c Parsing... doFile: E:Developmentantlr-2.7.1cgrammar est.c parseFile: test.c parser exception: java.lang.ClassCastException: antlr.CommonToken java.lang.ClassCastException: antlr.CommonToken at StdCLexer.makeToken(StdCLexer.java:78) at StdCLexer.mID(StdCLexer.java:2147) ..... I am using JDK1.3.1 and ANTLR-2.7.2a2. The build process works ok, except with a few warnings when translating the grammar files. Dow anyone have an advice/solution? Thanks
More>>
Hello everyone
If I run the GnuCParser provided on the antlr.org page get the following output:
CMD>java Main test.c
Parsing...
doFile:
E:Developmentantlr-2.7.1cgrammar est.c
parseFile: test.c
parser exception: java.lang.ClassCastException: antlr.CommonToken
java.lang.ClassCastException: antlr.CommonToken
at StdCLexer.makeToken(StdCLexer.java:78)
at StdCLexer.mID(StdCLexer.java:2147)
.....
I am using JDK1.3.1 and ANTLR-2.7.2a2. The build process works ok, except with a few warnings when translating the grammar files.
Dow anyone have an advice/solution?
Thanks
Andreas Morf (andreas_morf@bluewin.ch)
<<Less