[antlr-interest] |! in antlr2

Ben Corne ben.corne at gmail.com
Thu Apr 14 07:22:28 PDT 2011


I have an antlr2 gramatica which I'm converting to antlr3.

Multiple rules make use of the folowing construct:

someRule
   : ! otherexpressions
   | ! more
   | ...


What is the meaning of ! at the start of a branch? Scrape the entire branch
when building an AST?

Regards
Ben Corne


More information about the antlr-interest mailing list