[antlr-interest] how to perform exact matching during tree parsing instead of sufficient matching
Muhammad Masoom Alam
doublemalam at yahoo.co.uk
Mon Nov 22 12:06:52 PST 2004
Dear all,
As mentioned in the documentation of ANTLR that it performs sufficient matches instead of exact matches.
But I want exact match , I have a the following lines of code
check_rule
: (#(AND #(OR somerule1) #(IMPLIES somerule2)))
| ( #(AND somerule3) #(IMPLIES somerule4))
;
it doesnot work
I have tried the solution as follows
Check_rule
: (#(AND #(OR somerule1) #(IMPLIES somerule2)))=> (#(AND #(OR somerule1)
#(IMPLIES somerule2)))
|
( #(AND somerule3) #(IMPLIES somerule4)) => ( #(AND somerule3) #(IMPLIES somerule4))
if some body can help me in this
Regards
Muhammad.
---------------------------------
ALL-NEW Yahoo! Messenger - all new features - even more fun!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041122/2ed6a4e9/attachment.html
More information about the antlr-interest
mailing list