[antlr-interest] C generator is not generating @after actions

Andy Grove andy.grove at codefutures.com
Wed Feb 4 16:41:19 PST 2009


Hi,

Here's an extract from a grammar I am working with:

statement
@init { /* Empty */ }
@after 	{ sse.afterStatement(); }
:
/* rest omitted */

When I generate Java code from this grammar, I see both the @init and  
@after action code generated. However, when I generate C code I see  
the @init but not the @after code.

Is this feature not supported in the C target?

Thanks,

Andy.









More information about the antlr-interest mailing list