[antlr-interest] ANTLR generating invalid Java

Oren Ben-Kiki oren at ben-kiki.org
Wed Aug 6 20:34:03 PDT 2008


FWIW, the same things happen in version 3.1b.

On 8/6/08, Oren Ben-Kiki <oren at ben-kiki.org> 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?
>
> There are also some pretty weird if statements - see line 597 for an
> extreme example.
>
> Any ideas?
>
> Thanks,
>
>   Oren Ben-Kiki
>


More information about the antlr-interest mailing list