[antlr-interest] Proglem about the root of ASTree

sishen sishen_freecity at 126.com
Thu Sep 21 04:56:44 PDT 2006


I set buildAST = true;

I found something doesn't work when i defined a root.


for example:

test :  ID  op expr

op:
         ">"
    |   "<"
    ;


i want "op"  to be the root of  expression.
but i can't just write  "op^".  it's a  fault.

However, when i write op  suffix  the operator ">"/"<".  it's also unuseful.

What should i do?   thx all~



More information about the antlr-interest mailing list