ply.lex Namespace Reference

Classes

class  Lexer
 
class  LexerReflect
 
class  LexError
 
class  LexToken
 
class  NullLogger
 
class  PlyLogger
 

Functions

def func_code (f)
 
def get_caller_module_dict (levels)
 
def lex (module=None, object=None, debug=0, optimize=0, lextab="lextab", reflags=0, nowarn=0, outputdir="", debuglog=None, errorlog=None)
 
def runmain (lexer=None, data=None)
 
def TOKEN (r)
 

Variables

tuple StringTypes = (types.StringType, types.UnicodeType)
 
 Token = TOKEN
 

Function Documentation

def ply.lex.func_code (   f)
def ply.lex.get_caller_module_dict (   levels)

Referenced by ply.lex.lex().

def ply.lex.lex (   module = None,
  object = None,
  debug = 0,
  optimize = 0,
  lextab = "lextab",
  reflags = 0,
  nowarn = 0,
  outputdir = "",
  debuglog = None,
  errorlog = None 
)
def ply.lex.runmain (   lexer = None,
  data = None 
)
def ply.lex.TOKEN (   r)

Variable Documentation

tuple ply.lex.StringTypes = (types.StringType, types.UnicodeType)
ply.lex.Token = TOKEN