Classes | |
class | TreePatternLexer |
class | TreePatternParser |
class | TreePattern |
When using label:TOKENNAME in a tree for parse(), we must track the label. More... | |
class | WildcardTreePattern |
class | TreePatternTreeAdaptor |
This adaptor creates TreePattern objects for use during scan(). More... | |
class | TreeWizard |
Build and navigate trees with this object. More... | |
Functions | |
def | computeTokenTypes |
Compute a dict that is an inverted index of tokenNames (which maps int token types to names). | |
Variables | |
int | EOF = 1 |
token types for pattern parser | |
int | BEGIN = 1 |
int | END = 2 |
int | ID = 3 |
int | ARG = 4 |
int | PERCENT = 5 |
int | COLON = 6 |
int | DOT = 7 |
def antlr3.treewizard.computeTokenTypes | ( | tokenNames | ) |
Compute a dict that is an inverted index of tokenNames (which maps int token types to names).
Definition at line 50 of file treewizard.py.
int antlr3::treewizard.ARG = 4 |
Definition at line 63 of file treewizard.py.
int antlr3::treewizard.BEGIN = 1 |
Definition at line 60 of file treewizard.py.
int antlr3::treewizard.COLON = 6 |
Definition at line 65 of file treewizard.py.
int antlr3::treewizard.DOT = 7 |
Definition at line 66 of file treewizard.py.
int antlr3::treewizard.END = 2 |
Definition at line 61 of file treewizard.py.
int antlr3::treewizard.EOF = 1 |
int antlr3::treewizard.ID = 3 |
Definition at line 62 of file treewizard.py.
int antlr3::treewizard.PERCENT = 5 |
Definition at line 64 of file treewizard.py.