ply.yacc Namespace Reference

Classes

class  Grammar
 
class  GrammarError
 
class  LALRError
 
class  LRGeneratedTable
 
class  LRItem
 
class  LRParser
 
class  LRTable
 
class  MiniProduction
 
class  NullLogger
 
class  ParserReflect
 
class  PlyLogger
 
class  Production
 
class  VersionError
 
class  YaccError
 
class  YaccProduction
 
class  YaccSymbol
 

Functions

def digraph (X, R, FP)
 
def format_result (r)
 
def format_stack_entry (r)
 
def func_code (f)
 
def get_caller_module_dict (levels)
 
def load_ply_lex ()
 
def parse_grammar (doc, file, line)
 
def rightmost_terminal (symbols, terminals)
 
def traverse (x, N, stack, F, X, R, FP)
 
def yacc (method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, start=None, check_recursion=1, optimize=0, write_tables=1, debugfile=debug_file, outputdir='', debuglog=None, errorlog=None, picklefile=None)
 

Variables

string debug_file = 'parser.out'
 
string default_lr = 'LALR'
 
int error_count = 3
 
 MAXINT = sys.maxint
 
int pickle_protocol = 0
 
int resultlimit = 40
 
string tab_module = 'parsetab'
 
int yaccdebug = 1
 
int yaccdevel = 0
 

Function Documentation

def ply.yacc.digraph (   X,
  R,
  FP 
)
def ply.yacc.format_result (   r)
def ply.yacc.format_stack_entry (   r)
def ply.yacc.get_caller_module_dict (   levels)

Referenced by ply.yacc.yacc().

def ply.yacc.parse_grammar (   doc,
  file,
  line 
)
def ply.yacc.rightmost_terminal (   symbols,
  terminals 
)
def ply.yacc.traverse (   x,
  N,
  stack,
  F,
  X,
  R,
  FP 
)

Referenced by ply.yacc.digraph().

def ply.yacc.yacc (   method = 'LALR',
  debug = yaccdebug,
  module = None,
  tabmodule = tab_module,
  start = None,
  check_recursion = 1,
  optimize = 0,
  write_tables = 1,
  debugfile = debug_file,
  outputdir = '',
  debuglog = None,
  errorlog = None,
  picklefile = None 
)

Variable Documentation

string ply.yacc.debug_file = 'parser.out'
string ply.yacc.default_lr = 'LALR'
int ply.yacc.error_count = 3
ply.yacc.MAXINT = sys.maxint
int ply.yacc.pickle_protocol = 0
int ply.yacc.resultlimit = 40
string ply.yacc.tab_module = 'parsetab'
int ply.yacc.yaccdebug = 1
int ply.yacc.yaccdevel = 0