9.1.3.2. yacc

class PythonicGcodeMachine.PythonLexYacc.yacc.Grammar(terminals)[source]

Bases: object

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

Bases: PythonicGcodeMachine.PythonLexYacc.yacc.YaccError

exception PythonicGcodeMachine.PythonLexYacc.yacc.LALRError[source]

Bases: PythonicGcodeMachine.PythonLexYacc.yacc.YaccError

class PythonicGcodeMachine.PythonLexYacc.yacc.LRGeneratedTable(grammar, method='LALR', log=None)[source]

Bases: PythonicGcodeMachine.PythonLexYacc.yacc.LRTable

add_lalr_lookaheads(C)[source]
add_lookaheads(lookbacks, followset)[source]
compute_follow_sets(ntrans, readsets, inclsets)[source]
compute_lookback_includes(C, trans, nullable)[source]
compute_nullable_nonterminals()[source]
compute_read_sets(C, ntrans, nullable)[source]
dr_relation(C, trans, nullable)[source]
find_nonterminal_transitions(C)[source]
lr0_closure(I)[source]
lr0_goto(I, x)[source]
lr0_items()[source]
lr_parse_table()[source]
pickle_table(filename, signature='')[source]
reads_relation(C, trans, empty)[source]
write_table(tabmodule, outputdir='', signature='')[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.LRItem(p, n)[source]

Bases: object

class PythonicGcodeMachine.PythonLexYacc.yacc.LRParser(lrtab, errorf)[source]

Bases: object

disable_defaulted_states()[source]
errok()[source]
parse(input=None, lexer=None, debug=False, tracking=False, tokenfunc=None)[source]
parsedebug(input=None, lexer=None, debug=False, tracking=False, tokenfunc=None)[source]
parseopt(input=None, lexer=None, debug=False, tracking=False, tokenfunc=None)[source]
parseopt_notrack(input=None, lexer=None, debug=False, tracking=False, tokenfunc=None)[source]
restart()[source]
set_defaulted_states()[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.LRTable[source]

Bases: object

bind_callables(pdict)[source]
read_pickle(filename)[source]
read_table(module)[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.MiniProduction(str, name, len, func, file, line)[source]

Bases: object

bind(pdict)[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.NullLogger[source]

Bases: object

class PythonicGcodeMachine.PythonLexYacc.yacc.ParserReflect(pdict, log=None)[source]

Bases: object

get_all()[source]
get_error_func()[source]
get_pfunctions()[source]
get_precedence()[source]
get_start()[source]
get_tokens()[source]
signature()[source]
validate_all()[source]
validate_error_func()[source]
validate_modules()[source]
validate_pfunctions()[source]
validate_precedence()[source]
validate_start()[source]
validate_tokens()[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.PlyLogger(f)[source]

Bases: object

critical(msg, *args, **kwargs)
debug(msg, *args, **kwargs)[source]
error(msg, *args, **kwargs)[source]
info(msg, *args, **kwargs)
warning(msg, *args, **kwargs)[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.Production(number, name, prod, precedence=('right', 0), func=None, file='', line=0)[source]

Bases: object

bind(pdict)[source]
lr_item(n)[source]
reduced = 0
exception PythonicGcodeMachine.PythonLexYacc.yacc.VersionError[source]

Bases: PythonicGcodeMachine.PythonLexYacc.yacc.YaccError

exception PythonicGcodeMachine.PythonLexYacc.yacc.YaccError[source]

Bases: Exception

class PythonicGcodeMachine.PythonLexYacc.yacc.YaccProduction(s, stack=None)[source]

Bases: object

error()[source]
lexpos(n)[source]
lexspan(n)[source]
lineno(n)[source]
linespan(n)[source]
set_lexpos(n, lexpos)[source]
set_lineno(n, lineno)[source]
class PythonicGcodeMachine.PythonLexYacc.yacc.YaccSymbol[source]

Bases: object

PythonicGcodeMachine.PythonLexYacc.yacc.call_errorfunc(errorfunc, token, parser)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.digraph(X, R, FP)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.errok()[source]
PythonicGcodeMachine.PythonLexYacc.yacc.format_result(r)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.format_stack_entry(r)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.get_caller_module_dict(levels)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.parse_grammar(doc, file, line)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.restart()[source]
PythonicGcodeMachine.PythonLexYacc.yacc.rightmost_terminal(symbols, terminals)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.token()[source]
PythonicGcodeMachine.PythonLexYacc.yacc.traverse(x, N, stack, F, X, R, FP)[source]
PythonicGcodeMachine.PythonLexYacc.yacc.yacc(method='LALR', debug=True, module=None, tabmodule='parsetab', start=None, check_recursion=True, optimize=False, write_tables=True, debugfile='parser.out', outputdir=None, debuglog=None, errorlog=None, picklefile=None)[source]