[antlr-interest] How to get Parser rule's return value?
Shaoting Cai
caishaoting at gmail.com
Wed Feb 14 23:19:38 PST 2007
Hi, I'm a beginner. Could you tell me how to get parser rule's return
value?
eg: I have this parser rule...
*variable* [int iPos] returns [int iOffset]
: IDENT { iOffset= 1; }
;
*declare*
: "var" variable *{ /* I need return value here */ }*
;
I'm using CPP output.
Thanks!
Shaoting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070215/e83692a2/attachment.html
More information about the antlr-interest
mailing list