[antlr-interest] Is this code correct (V3.1) ?

Jean-Christophe Le Lann jc.lelann at gmail.com
Wed Aug 6 10:42:47 PDT 2008


Hello,

I would like to know whether this code is correct in v3.1. I am using
v3.1b2.

expr returns [Expr e]
{
Expr a, b;
e = null;
}
: ^(OR a=expr b=expr { e = new Or(a, b); } )
| etc...


or do I need to use Or($a.e, $b.e) ??

In V2 that seemed to be different...Am I right ?

Thanks for your help
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080806/6e4d56bc/attachment.html 


More information about the antlr-interest mailing list