[antlr-interest] [v3] parser rules are final

Terence Parr parrt at cs.usfca.edu
Fri Jun 8 13:43:03 PDT 2007


On Jun 8, 2007, at 1:34 PM, Sven Efftinge wrote:

> I've patched the template as you recommended.
> Terence, maybe you like the idea of having a 'global' @init and  
> @after ?
> I mean something like an AOP around, which would be very helpful to  
> implement generic stuff (e.g. tracing).

Technically you can say

@foo {...}

at a global level and the grammar and then reference <actions.foo> I  
think in the template all without altering the code generator  
itself.  Heh heh heh.  The code generator architecture of v3 is one  
of my favorite things about the tool.

Ter


More information about the antlr-interest mailing list