[antlr-interest] ANTLR 3.0b6 Code Generation Issue
Terence Parr
parrt at cs.usfca.edu
Tue Mar 13 18:23:04 PDT 2007
Added report:
http://www.antlr.org:8888/browse/ANTLR-94
// does NOT compile
a : (| A | B) X Y
| (| A | B) X Z
;
Took me a while to narrow down to this small example. ;)
Ter
On Feb 12, 2007, at 10:16 AM, Bert Williams wrote:
> If I remove the comment at line 130 of the attached grammar file,
> ANTLR3.0b6 generates code with the following types of errors:
>
> "eregexParser.java": LA12_2 is already defined in expression_term()
> at line 1052, column 25
> The error does not occur if the line is commented out.
>
>
>
> No ANTLR error is generated with either grammar.
>
>
>
> What’s causing this? Is there a workaround?
>
>
>
> Bert Williams.
>
>
>
> <eregex.g>
More information about the antlr-interest
mailing list