[antlr-interest] CCCP - Compiler Compiler Challenged Person
Monty Zukowski
monty at codetransform.com
Thu Dec 23 09:01:25 PST 2004
Matt Wisner wrote:
>
>
>
> statement
>
> : assignmentStatement { #statement = #as; }
>
> | cs:conditionalStatement { #statement = #cs; }
>
> ;
>
>
>
What are you trying to do here? You don't have an "as" label for one
thing. For another there is no need for your actions here, antlr will
return from statement whichever of the two options it matches.
Get rid of those actions and see what happens.
Monty
More information about the antlr-interest
mailing list