[antlr-interest] how to all the matched in java
william yuan
ordinarybackstreetmoldywilliam at gmail.com
Fri Mar 20 23:42:32 PDT 2009
Hi ,
problem like this ,
i ve defined a grammar like this
expr: ID*;
ID:('a'..'z')*;
and my input is
ABC DEF
so how can i get IDs which match to ABC and DEF both?
i know use
expr:ID*
{ System.out.println($ID.text)}
to get the value which matched by ID ,but it only can get the value DEF ,which is the last matched ,
i wanna get ALL the matched ? so ... that 's my problem ,
Thanks
William Vian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090321/465d4c54/attachment.html
More information about the antlr-interest
mailing list