[antlr-interest] Why BANG after rule id ?

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Oct 7 10:41:09 PDT 2009


On Tue, Oct 6, 2009 at 5:51 PM, Graham Wideman <gwlist at grahamwideman.com>wrote:

>
> Anyhow, it looks to me like a '!' in this position is recognized but
> ignored -- either a vestige of a no-longer active feature, or an
> anticipation of a future feature?
>
> -- Graham
>
>
In ANTLR v2, it turns off AST construction for the entire rule, which is
necessary if you're building the AST for that rule entirely by hand.
Guessing v3 is smart enough not to need it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091007/0125ad0b/attachment.html 


More information about the antlr-interest mailing list