[antlr-interest] rulecatch

Terence Parr parrt at cs.usfca.edu
Sun Oct 15 08:21:55 PDT 2006


On Oct 15, 2006, at 3:42 AM, Michael Gerz wrote:

> Terence,
>
> where can I find more information on @rulecatch? The only page that  
> mentions it is "Migrating from ANTLR 2 to ANTLR 3". Is it a grammar  
> or a rule action?

@rulecatch {...} is an action above your rules.  it replaces the  
entire catch clause of the rules' try/catch.

> IMHO the ANTLR 3 document should somehow reflect ANTLR3's grammar.  
> Knowing the complete ANTLR feature set (the complete structure of  
> grammars and its rules, a complete list of all available actions,  
> etc.) is the first step to enlightment :-)

Yep, that would be nice...i'm doing the best I can with school, bug  
fixing, and working on the book.  I need to copy some of the basic  
details from the book to the online free doc...

Ter


More information about the antlr-interest mailing list