Classes | |
class | RewriteCardinalityException |
Base class for all exceptions thrown during AST rewrite construction. More... | |
class | RewriteEarlyExitException |
No elements within a (. More... | |
class | RewriteEmptyStreamException |
Ref to ID or expr but no tokens in ID stream or subtrees in expr stream. More... | |
class | Tree |
Abstract baseclass for tree nodes. More... | |
class | TreeAdaptor |
Abstract baseclass for tree adaptors. More... | |
class | BaseTree |
warnings.warn( "Using create() is deprecated, use createWithPayload()", DeprecationWarning, stacklevel=2 ) More... | |
class | BaseTreeAdaptor |
A TreeAdaptor that works with any Tree implementation. More... | |
class | CommonTree |
A tree node that is wrapper for a Token object. More... | |
class | CommonErrorNode |
A node representing erroneous token range in token stream. More... | |
class | CommonTreeAdaptor |
A TreeAdaptor that works with any Tree implementation. More... | |
class | TreeNodeStream |
A stream of tree nodes. More... | |
class | CommonTreeNodeStream |
A buffered stream of tree nodes. More... | |
class | TreeParser |
Baseclass for generated tree parsers. More... | |
class | TreeVisitor |
Do a depth first walk of a tree, applying pre() and post() actions we go. More... | |
class | RewriteRuleElementStream |
Internal helper class. More... | |
class | RewriteRuleTokenStream |
Internal helper class. More... | |
class | RewriteRuleSubtreeStream |
Internal helper class. More... | |
class | RewriteRuleNodeStream |
Queues up nodes matched on left side of -> in a tree parser. More... | |
class | TreeRuleReturnScope |
This is identical to the ParserRuleReturnScope except that the start property is a tree nodes not Token object when you are parsing trees. More... | |
Variables | |
tuple | INVALID_NODE = CommonTree(INVALID_TOKEN) |
ANTLR3 runtime package, treewizard module.
This module contains all support classes for AST construction and tree parsers.
A utility module to create ASTs at runtime. See <http://www.antlr.org/wiki/display/~admin/2007/07/02/Exploring+Concept+of+TreeWizard> for an overview. Note that the API of the Python implementation is slightly different.