[antlr-interest] Problem with recursive rules
Gavin Lambert
antlr at mirality.co.nz
Sun Dec 16 23:05:15 PST 2007
At 12:13 17/12/2007, Mark wrote:
>the Java compiler gives errors like:
>
>[00:07:14] \tmp\antlrworks\tParser.java:1525: orphaned default
>[00:07:14] default();
>[00:07:14] ^
>[00:07:14] \tmp\antlrworks\tParser.java:1525: : expected
>[00:07:14] default();
>[00:07:14] ^
>[00:07:14] \tmp\antlrworks\tParser.java:1525: illegal start of
>expression
>[00:07:14] default();
>[00:07:14] ^
>[00:07:14] \tmp\antlrworks\tParser.java:1593: <identifier>
>expected
>[00:07:14] public final void default() throws
>RecognitionException {
>[00:07:14] ^
This means that you probably have a rule called "default" in your
grammar. You'll need to rename it, as it conflicts with a Java
reserved keyword.
More information about the antlr-interest
mailing list