[antlr-interest] ANTLR generating invalid Java

Terence Parr parrt at cs.usfca.edu
Thu Aug 7 11:17:00 PDT 2008


On Aug 6, 2008, at 3:23 PM, Oren Ben-Kiki wrote:

> The attached .g file causes ANTLR version 3.0.1 to generate invalid
> Java (also attached, gzipped).
>
> See for example line 1758 - where is the "n" rule parameter variable
> supposed to come from? Could it be that back-tracking and rule
> parameters don't mix?

yep.  youHave to be careful; some discussions about this in the  
archives or in the book.
Ter


More information about the antlr-interest mailing list