[antlr-interest] Assigning perorities to different production rules
Muhammad Masoom Alam
doublemalam at yahoo.co.uk
Fri Nov 19 01:31:02 PST 2004
Dear all,
I have one confusion regarging production rules
suppose i have production rule as follows
expression :addingexpression;
addingexpression : IDENT (DOT! IDENT)* | DOT CONTAINS^
now the probelm is that the first possibitlty god executed and not the 2nd one as CONTAINS is a key word but a also a valid identifier.and as a result first possiblity is always executed not the 2nd one, is there is any way to assign some perority to these rules so that it should check for the 2nd one as well.
Regards.
Muhammad.
:
now adding
---------------------------------
Moving house? Beach bar in Thailand? New Wardrobe? Win £10k with Yahoo! Mail to make your dream a reality.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041119/2777a5dd/attachment.html
More information about the antlr-interest
mailing list