[antlr-interest] labels for rule results?
Gavin Lambert
antlr at mirality.co.nz
Sun Aug 24 04:34:19 PDT 2008
At 23:19 24/08/2008, Torsten Curdt wrote:
>Thanks for the answer. But that wasn't what I was trying to ask.
>:)
>
>attributeDeclaration
> : thetype=type_specifier name=Identifier ';'
> {
> System.out.println("name:" + name.getText());
> System.out.println("type:" + thetype);
> }
> ;
>
>"thetype" is problem. There is no problem with "name".
The answer is the same. You need to use the proper syntax (using
$ attributes).
More information about the antlr-interest
mailing list