Andy Grove wrote:
> 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.
>
@after is not supported in the C target. Use this:
statement
@declarations
@init { /* Empty */ }
: ( x | Y | x | g)
{
sse.afterStatement();
}
;
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---