[antlr-interest] New article on StringTemplates and Treewalkers

Terence Parr parrt at cs.usfca.edu
Tue Jan 10 14:38:38 PST 2006


On Jan 10, 2006, at 2:15 PM, sohail at taggedtype.net wrote:
> OT for the topic, but why do we have an @init{...} action where before
> just {...} would have sufficed? I'm an totally unfamiliar with  
> antlr v3
> though :)

Because the amount of stuff I wanted in there got complicated enough  
and because @init {...} is consistent with named actions elsewhere :)

@header {...}
@members {...}
etc...

Ter


More information about the antlr-interest mailing list