[antlr-interest] Re: how to impose evaluation

Bryan ewbank at synopsys.com
Mon Nov 29 06:51:21 PST 2004



Another way to do this, with recursion, is:

  start
    : rule1 ( rule3 | start )
    | rule2 ( rule4 | start )
    ;

This doesn't do the "want execution of one rule to alter another 
rule", but approaches the problem in a different way...


> 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





 
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