[antlr-interest] Question regarding "Assignment"

Lucien Antlr lucien_antlr at yahoo.com
Tue Mar 24 01:07:52 PDT 2009


Hi folks,

Still wrestling with the ins and outs of the tool, I came up with something I expected to work but that didn't.

I expected lab=(EQ expr) to assign the AST to "lab", but rather it always returns a null.

The equivalent  working statement would be either
1)    (labA=EQ labB=expr) -> ^($labA $labB)
or
2)  newRule:   EQ expr;
   (lab=newRule) -> ^($lab) 

Is it a bug that grouping through ( ) doesn't work when assigning to a label?

Cheers,
Luc



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090324/ccb03035/attachment.html 


More information about the antlr-interest mailing list