App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine._internal.antlr3.streams.CharStream Class Reference
Inheritance diagram for google.appengine._internal.antlr3.streams.CharStream:
google.appengine._internal.antlr3.streams.IntStream google.appengine._internal.antlr3.streams.ANTLRStringStream google.appengine._internal.antlr3.streams.ANTLRFileStream google.appengine._internal.antlr3.streams.ANTLRInputStream

Public Member Functions

def substring
 
def LT
 
def getLine
 
def setLine
 
def getCharPositionInLine
 
def setCharPositionInLine
 
- Public Member Functions inherited from google.appengine._internal.antlr3.streams.IntStream
def consume
 
def LA
 
def mark
 
def index
 
def rewind
 
def release
 
def seek
 
def size
 
def getSourceName
 

Static Public Attributes

int EOF = -1
 

Detailed Description

@brief A source of characters for an ANTLR lexer.

This is an abstract class that must be implemented by a subclass.

Member Function Documentation

def google.appengine._internal.antlr3.streams.CharStream.getCharPositionInLine (   self)
The index of the character relative to the beginning of the line 0..n-1
def google.appengine._internal.antlr3.streams.CharStream.getLine (   self)
ANTLR tracks the line information automatically
def google.appengine._internal.antlr3.streams.CharStream.LT (   self,
  i 
)
Get the ith character of lookahead.  This is the same usually as
LA(i).  This will be used for labels in the generated
lexer code.  I'd prefer to return a char here type-wise, but it's
probably better to be 32-bit clean and be consistent with LA.
def google.appengine._internal.antlr3.streams.CharStream.setLine (   self,
  line 
)
Because this stream can rewind, we need to be able to reset the line
def google.appengine._internal.antlr3.streams.CharStream.substring (   self,
  start,
  stop 
)
For infinite streams, you don't need this; primarily I'm providing
a useful interface for action code.  Just make sure actions don't
use this on streams that don't support it.

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