Public Member Functions
rve_interface_gen.antlr3.tree.RewriteRuleNodeStream Class Reference
Inheritance diagram for rve_interface_gen.antlr3.tree.RewriteRuleNodeStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def dup
def nextNode
def toTree

Detailed Description

Queues up nodes matched on left side of -> in a tree parser. This is
the analog of RewriteRuleTokenStream for normal parsers. 

Definition at line 2663 of file tree.py.


Member Function Documentation

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.

Definition at line 2677 of file tree.py.

Definition at line 2669 of file tree.py.

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.

Definition at line 2673 of file tree.py.


The documentation for this class was generated from the following file:


rve_interface_gen
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:31:00