[antlr-interest] Rewrite rule

Dennis Katumalla denniskatumalla at yahoo.com
Fri Mar 16 19:10:28 PDT 2007


What should my rewrite rule look like if I wanted ^(MULTIPLY factor factor) or ^(DIVIDE factor factor)

term : factor ((MULTIPLY | DIVIDE) factor)* 
        ;

Thanks!!
 

Dennis






More information about the antlr-interest mailing list