App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine._internal.antlr3.tree.TreeParser Class Reference
Inheritance diagram for google.appengine._internal.antlr3.tree.TreeParser:
google.appengine._internal.antlr3.recognizers.BaseRecognizer

Public Member Functions

def __init__
 
def reset
 
def setTreeNodeStream
 
def getTreeNodeStream
 
def getSourceName
 
def getCurrentInputSymbol
 
def getMissingSymbol
 
def matchAny
 
def mismatch
 
def getErrorHeader
 
def getErrorMessage
 
def traceIn
 
def traceOut
 
- Public Member Functions inherited from google.appengine._internal.antlr3.recognizers.BaseRecognizer
def __init__
 
def setInput
 
def reset
 
def match
 
def matchAny
 
def mismatchIsUnwantedToken
 
def mismatchIsMissingToken
 
def mismatch
 

Public Attributes

 input
 
- Public Attributes inherited from google.appengine._internal.antlr3.recognizers.BaseRecognizer
 input
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine._internal.antlr3.recognizers.BaseRecognizer
int MEMO_RULE_FAILED = -2
 
int MEMO_RULE_UNKNOWN = -1
 
 DEFAULT_TOKEN_CHANNEL = DEFAULT_CHANNEL
 
 HIDDEN = HIDDEN_CHANNEL
 
 tokenNames = None
 
tuple antlr_version = (3, 0, 1, 0)
 
string antlr_version_str = "3.0.1"
 

Detailed Description

@brief Baseclass for generated tree parsers.

A parser for a stream of tree nodes.  "tree grammars" result in a subclass
of this.  All the error reporting and recovery is shared with Parser via
the BaseRecognizer superclass.

Member Function Documentation

def google.appengine._internal.antlr3.tree.TreeParser.getErrorHeader (   self,
  e 
)
Prefix error message with the grammar name because message is
always intended for the programmer because the parser built
the input tree not the user.
def google.appengine._internal.antlr3.tree.TreeParser.getErrorMessage (   self,
  e,
  tokenNames 
)
Tree parsers parse nodes they usually have a token object as
payload. Set the exception token and do the default behavior.
def google.appengine._internal.antlr3.tree.TreeParser.matchAny (   self,
  ignore 
)
Match '.' in tree parser has special meaning.  Skip node or
entire tree if node has children.  If children, scan until
corresponding UP node.
def google.appengine._internal.antlr3.tree.TreeParser.mismatch (   self,
  input,
  ttype,
  follow 
)
We have DOWN/UP nodes in the stream that have no line info; override.
plus we want to alter the exception type. Don't try to recover
from tree parser errors inline...
def google.appengine._internal.antlr3.tree.TreeParser.setTreeNodeStream (   self,
  input 
)
Set the input stream

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