[antlr-interest] About tree walker sintax (antlr 2.7.6)

Jose Ventura jose.ventura.roda at gmail.com
Fri Jan 5 04:10:47 PST 2007


Hi all,
Can any body tell me why these rules are unlike:
        RULES 1
        =======
        expression
            : #(AND expression expression)
             | #(OR expression expression)
             | ...
        ;
        RULES 2
        =======
        expresion
             : (oper expression expression)
              |...
        ;
        oper
             : AND|OR
        ;


The rule 2 is not ok, but I don't know what tree is correct for it. Any
Suggestion?
Thank's in advance.
José Ventura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070105/6421b2ad/attachment-0001.html 


More information about the antlr-interest mailing list