[antlr-interest] variables, alternatives and actions

Terence Parr parrt at cs.usfca.edu
Sat Jul 5 15:02:00 PDT 2008


Sorry about that...haven't implemented labels for subrules yet...sets  
(no actions) work as special case.
Ter
On Jul 5, 2008, at 2:39 PM, Sven Efftinge wrote:

> Hi,
>
> in the following example the token is not assigned to the variable  
> because the alternative contains actions:
>
> var=('+' { /* my action */} |'-' { /* my action */ })
>
> Is this intended or is it a bug? If it's a bug, has it been fixed in  
> the latest version?
> I'm using 3.0.1 and the Java target.
>
> thanks,
> Sven



More information about the antlr-interest mailing list