[antlr-interest] AST children being lost
Seth Delackner
seth at jtan.com
Wed Feb 20 09:55:05 PST 2002
First, thanks for this list and for ANTLR.
With the following production in a java grammar based on java.g:
extendsClause: #(EXTENDS_CLAUSE (identifier)* )
{
System.out.println ("ExtendsClause= "+ #EXTENDS_CLAUSE.toStringList());
}
I get this:
ExtendsClause= ( EXTENDS_CLAUSE testAbstract-IdentNode(testAbstract) ) IMPLEMENTS_CLAUSE ( ....
Which shows that the node has a child 'testAbstract', an IdentNode.
But in the rule that matches extendsClause, the node ends up having
no children and just the 'IMPLEMENTS_CLAUSE' sibling.
What do I have to change to propogate the children of extendsClause?
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list