[antlr-interest] variables, alternatives and actions

Sven Efftinge sven at efftinge.de
Sat Jul 5 14:39:49 PDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080705/e54f9535/attachment.html 


More information about the antlr-interest mailing list