[antlr-interest] Re: exact matching verses sufficient matches plz help

micheal_jor open.zone at virgin.net
Mon Nov 22 23:20:52 PST 2004



--- In antlr-interest at yahoogroups.com, Muhammad Masoom Alam
<doublemalam at y...> wrote:
> dear all,
> Plz help me in exact matches problem i have attached with this.
>  
> regards.


> 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 

What do you mean here?. What exactly happens, is there an error
message (if so, what was it?) etc.

In any case aren't you missing a leading '#' in the second alternative?

  : (#(AND #(OR somerule1) #(IMPLIES somerule2)))
  | #( #(AND somerule3) #(IMPLIES somerule4)) 
  ;

Micheal






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list