[antlr-interest] Newbie questions: How to traverse the AST ...
Agnisys
agnisys at yahoo.com
Mon Jan 1 09:33:16 PST 2007
Thats my problem! I need to be able to match the following:
LHS5=CDE=ABC=XYZ=10
How can I do it, any ideas?
Thanks,
Anupam.
> Right, there'll be a non-determinism in the production for `rhs`.
> For the sample inputs you had provided,
> rhs:lhs(EQUALS rhs)? | NUMBER ;
> should work.
>
> lhs(EQUALS rhs)* was just trying to handle the last case of the input I
> had tried, namely LHS5=CDE=ABC=XYZ=10.
>
More information about the antlr-interest
mailing list