moleculekit.ply.yacc module#

class moleculekit.ply.yacc.Grammar(terminals)#

Bases: object

add_production(prodname, syms, func=None, file='', line=0)#
build_lritems()#
compute_first()#
compute_follow(start=None)#
find_unreachable()#
infinite_cycles()#
set_precedence(term, assoc, level)#
set_start(start=None)#
undefined_symbols()#
unused_precedence()#
unused_rules()#
unused_terminals()#
exception moleculekit.ply.yacc.GrammarError#

Bases: YaccError

exception moleculekit.ply.yacc.LALRError#

Bases: YaccError

class moleculekit.ply.yacc.LRItem(p, n)#

Bases: object

class moleculekit.ply.yacc.LRParser(lrtab, errorf)#

Bases: object

disable_defaulted_states()#
errok()#
parse(input=None, lexer=None, debug=False, tracking=False)#
restart()#
set_defaulted_states()#
class moleculekit.ply.yacc.LRTable(grammar, log=None)#

Bases: object

add_lalr_lookaheads(C)#
add_lookaheads(lookbacks, followset)#
bind_callables(pdict)#
compute_follow_sets(ntrans, readsets, inclsets)#
compute_lookback_includes(C, trans, nullable)#
compute_nullable_nonterminals()#
compute_read_sets(C, ntrans, nullable)#
dr_relation(C, trans, nullable)#
find_nonterminal_transitions(C)#
lr0_closure(I)#
lr0_goto(I, x)#
lr0_items()#
lr_parse_table()#
reads_relation(C, trans, empty)#
class moleculekit.ply.yacc.NullLogger#

Bases: object

class moleculekit.ply.yacc.ParserReflect(pdict, log=None)#

Bases: object

get_all()#
get_error_func()#
get_pfunctions()#
get_precedence()#
get_start()#
get_tokens()#
signature()#
validate_all()#
validate_error_func()#
validate_modules()#
validate_pfunctions()#
validate_precedence()#
validate_start()#
validate_tokens()#
class moleculekit.ply.yacc.PlyLogger(f)#

Bases: object

critical(msg, *args, **kwargs)#
debug(msg, *args, **kwargs)#
error(msg, *args, **kwargs)#
info(msg, *args, **kwargs)#
warning(msg, *args, **kwargs)#
class moleculekit.ply.yacc.Production(number, name, prod, precedence=('right', 0), func=None, file='', line=0)#

Bases: object

bind(pdict)#
lr_item(n)#
reduced = 0#
exception moleculekit.ply.yacc.YaccError#

Bases: Exception

class moleculekit.ply.yacc.YaccProduction(s, stack=None)#

Bases: object

error()#
lexpos(n)#
lexspan(n)#
lineno(n)#
linespan(n)#
set_lexpos(n, lexpos)#
set_lineno(n, lineno)#
class moleculekit.ply.yacc.YaccSymbol#

Bases: object

moleculekit.ply.yacc.digraph(X, R, FP)#
moleculekit.ply.yacc.format_result(r)#
moleculekit.ply.yacc.format_stack_entry(r)#
moleculekit.ply.yacc.get_caller_module_dict(levels)#
moleculekit.ply.yacc.parse(input=None, lexer=None, debug=False, tracking=False)#
moleculekit.ply.yacc.parse_grammar(doc, file, line)#
moleculekit.ply.yacc.rightmost_terminal(symbols, terminals)#
moleculekit.ply.yacc.traverse(x, N, stack, F, X, R, FP)#
moleculekit.ply.yacc.yacc(*, debug=False, module=None, start=None, check_recursion=True, optimize=False, debugfile='parser.out', debuglog=None, errorlog=None)#