[antlr-interest] How to get the inner ${identifier}.text
Ha Luong
haluongvn at gmail.com
Fri Jul 10 19:54:08 PDT 2009
Hi all,
I couldn't get the inner ${identifier}.text, and the grammar as follow:
q1_1a_bk
(time_phrase)?
{
System.out.println($prep_time.text);
}
'\?';
time_phrase
: prep_time time;
prep_time :
'trong' |
'sau';
time : ('n\\u0103m')? DecimalLiteral ;
Please help me how I can get the $prep_time.text.
Thank you very much,
Ha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090710/3ac632e5/attachment.html
More information about the antlr-interest
mailing list