Public Member Functions | |
def | dup |
def | nextNode |
def | nextToken |
def | toTree |
def rve_interface_gen.antlr3.tree.RewriteRuleTokenStream.dup | ( | self, | |
el | |||
) |
When constructing trees, sometimes we need to dup a token or AST subtree. Dup'ing a token means just creating another AST node around it. For trees, you must call the adaptor.dupTree() unless the element is for a tree root; then it must be a node dup.
Reimplemented from rve_interface_gen.antlr3.tree.RewriteRuleElementStream.
def rve_interface_gen.antlr3.tree.RewriteRuleTokenStream.toTree | ( | self, | |
el | |||
) |
Ensure stream emits trees; tokens must be converted to AST nodes. AST nodes can be passed through unmolested.
Reimplemented from rve_interface_gen.antlr3.tree.RewriteRuleElementStream.