[antlr-interest] how to impose evaluation

Muhammad Masoom Alam doublemalam at yahoo.co.uk
Sat Nov 27 06:11:02 PST 2004


Dear all,
  
let suppose i have the rule

 start
     : (check)+
       expression
     ;
    
 check
     : rule1
      | rule2
     ;
expression
  : rule3
   | rule4
  ;

now i want that rule3 should be executed if rule1 is
the last rule executed , else rule4 
i.e. what i wanted the execution result of check rule 
should impact rule expression

 how this will b possible , i have tried with a
variable flag , but that was not successful

bye
Muhammad


	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com


 
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