[antlr-interest] Token/TOKENS Rewrite Bug

Johannes Luber jaluber at gmx.de
Sun Jan 27 16:20:20 PST 2008


ANTLR Mailing List schrieb:
> Hello there. I'm not sure if this has been fixed, but I have a simple 
> grammar that ANTLR (in 3.0 or some dev version) generates incorrectly in 
> Java. It's an easy manual fix, but I'd thought I'll let you know.
> 
> Here's my grammar, it's a simple variation of the Expr grammar:
> 
...

This is already a known bug and hopefully Ter will finally fix it. But 
there is a workaround - extract the contents of the parentheses into an 
own rule.


Johannes


More information about the antlr-interest mailing list