[antlr-interest] action syntax

Terence Parr parrt at cs.usfca.edu
Wed Nov 23 09:59:12 PST 2005


On Nov 23, 2005, at 1:34 AM, Akhilesh Mritunjai wrote:

>
>> If I do
>> type:("char"|"int") name:IDENTIFIER
>> { do something with 'type' and 'name' }
>> in the parser, ANTLR tells me there's no variable 'type'.
>
> Its my favorite pet-peeve with ANTLR. Labels are extremely limited  
> in how they can be used.

Mine too. ;)  Fixed in v3. ;)

Ter


More information about the antlr-interest mailing list