[antlr-interest] Walking an AST with a TreeParser
Remi
remi.koutcherawy at wanadoo.fr
Wed Jul 31 06:17:51 PDT 2002
I am looking for a way to traverse completely an AST with a TreeParser.
How can you visit all the leafs with a simple rule ?
sibling : #( . sibling) | . sibling ;
doesn't work, it ends with a "<AST>: unexpected end of subtree"
My intent is to look only for special nodes without
either handcode in java or import a whole grammar.
Rémi
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list