Package schrodinger :: Package application :: Package desmond :: Package antlr3 :: Module treewizard
[hide private]
[frames] | no frames]

Module treewizard

@package antlr3.tree @brief ANTLR3 runtime package, treewizard module

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.

Classes [hide private]
  TreePatternLexer
  TreePatternParser
  TreePattern
When using %label:TOKENNAME in a tree for parse(), we must track the label.
  WildcardTreePattern
  TreePatternTreeAdaptor
This adaptor creates TreePattern objects for use during scan()
  TreeWizard
Build and navigate trees with this object.
Functions [hide private]
 
computeTokenTypes(tokenNames)
Compute a dict that is an inverted index of tokenNames (which maps int token types to names).
Variables [hide private]
  EOF = -1
  BEGIN = 1
  END = 2
  ID = 3
hash(x)
  ARG = 4
  PERCENT = 5
  COLON = 6
  DOT = 7
  __package__ = 'schrodinger.application.desmond.antlr3'