Customized version of ply.yacc parser
ply.yacc
This is a modified version of ply.yacc (from PLY 3.11) that removes support for loading parse tables from picklefiles or arbitrary locations on the filesystem. yacc() is expected to be used in a “2-pass” mode: either called to generate the parse table module, or else passed the imported parse table module to return a fully-constructed parser.
yacc()
The YACC logic itself is unchanged from the original distribution.
Classes
Grammar(terminals)
Grammar
LRGeneratedTable(grammar[, method, log])
LRGeneratedTable
LRItem(p, n)
LRItem
LRParser(lrtab, errorf)
LRParser
LRTable()
LRTable
MiniProduction(str, name, len, func, file, line)
MiniProduction
NullLogger()
NullLogger
ParserReflect(pdict[, log])
ParserReflect
PlyLogger(f)
PlyLogger
Production(number, name, prod[, precedence, ...])
Production
YaccProduction(s[, stack])
YaccProduction
YaccSymbol()
YaccSymbol
Exceptions
GrammarError
LALRError
VersionError
YaccError
Functions
call_errorfunc(errorfunc, token, parser)
call_errorfunc
digraph(X, R, FP)
digraph
errok()
errok
format_result(r)
format_result
format_stack_entry(r)
format_stack_entry
get_caller_module_dict(levels)
get_caller_module_dict
parse_grammar(doc, file, line)
parse_grammar
restart()
restart
rightmost_terminal(symbols, terminals)
rightmost_terminal
token()
token
traverse(x, N, stack, F, X, R, FP)
traverse
yacc([method, debug, module, tabmodule, ...])
yacc
Generate and return a parser object