[antlr-interest] [ANTLR2] post-rule action?

Christopher Schultz chris at christopherschultz.net
Fri Apr 27 09:59:26 PDT 2012


Jim,

On 4/26/12 10:22 PM, Jim Idle wrote:
> @after
> 
> Or (my preference)
> 
> rule : ( alt | alt | alt) { actions(); } ;

Perfect. I'm not sure why I thought that there needed to be special
syntax for code that executes after all alternatives. Just put it at the
end!

Thanks,
-chris


More information about the antlr-interest mailing list