[antlr-interest] action syntax
Terence Parr
parrt at cs.usfca.edu
Wed Nov 23 13:35:11 PST 2005
On Nov 23, 2005, at 1:28 PM, Akhilesh Mritunjai wrote:
> On Wed, 23 Nov 2005 23:29:12 +0530, Terence Parr
> <parrt at cs.usfca.edu> wrote:
>>> Its my favorite pet-peeve with ANTLR. Labels are extremely
>>> limited in how they can be used.
>>
>> Mine too. ;) Fixed in v3. ;)
>
>
> You mean I can do something like:
>
> rule:
> (
> a:branch0
> | a:branch1
> | a:branch2
> )
> {
> doSomething(a);
> }
Correct.
Ter
More information about the antlr-interest
mailing list