Fwd: [antlr-interest] Hi, is there anybody tell me how to get parse tree?

Martin Probst mail at martin-probst.com
Mon Feb 6 02:16:36 PST 2006


I think you call it parse tree if you include a tree node for each rule
you're passing through, not only for each token. ANTLR doesn't do this,
and to me it's pretty obscure for what parse trees might be useful.

 
> Thus my problem is,  "(" SHOULD be included in the tree,(In  classic
> book, this kind of tree named parse tree, not AST). Thanks for your
> hint, I'v remove the "!" symbol from rule, now "(" and ")" are
> included in the tree. 

> 



More information about the antlr-interest mailing list