PyFoam.ThirdParty.ply.yacc module

class PyFoam.ThirdParty.ply.yacc.Grammar(terminals)[source]

Bases: object

__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', 'unused_precedence': <function unused_precedence>, '__getitem__': <function __getitem__>, 'add_production': <function add_production>, 'set_start': <function set_start>, 'compute_first': <function compute_first>, '__dict__': <attribute '__dict__' of 'Grammar' objects>, '__weakref__': <attribute '__weakref__' of 'Grammar' objects>, '__init__': <function __init__>, '_first': <function _first>, 'find_unreachable': <function find_unreachable>, 'unused_terminals': <function unused_terminals>, 'set_precedence': <function set_precedence>, 'compute_follow': <function compute_follow>, 'unused_rules': <function unused_rules>, 'undefined_symbols': <function undefined_symbols>, 'build_lritems': <function build_lritems>, '__doc__': None, '__len__': <function __len__>, 'infinite_cycles': <function infinite_cycles>})
__getitem__(index)[source]
__init__(terminals)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__len__()[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

_first(beta)[source]
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 PyFoam.ThirdParty.ply.yacc.GrammarError[source]

Bases: PyFoam.ThirdParty.ply.yacc.YaccError

__module__ = 'PyFoam.ThirdParty.ply.yacc'
exception PyFoam.ThirdParty.ply.yacc.LALRError[source]

Bases: PyFoam.ThirdParty.ply.yacc.YaccError

__module__ = 'PyFoam.ThirdParty.ply.yacc'
class PyFoam.ThirdParty.ply.yacc.LRGeneratedTable(grammar, method='LALR', log=None)[source]

Bases: PyFoam.ThirdParty.ply.yacc.LRTable

__init__(grammar, method='LALR', log=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
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 PyFoam.ThirdParty.ply.yacc.LRItem(p, n)[source]

Bases: object

__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__str__': <function __str__>, '__repr__': <function __repr__>, '__dict__': <attribute '__dict__' of 'LRItem' objects>, '__weakref__': <attribute '__weakref__' of 'LRItem' objects>, '__doc__': None, '__init__': <function __init__>})
__init__(p, n)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__repr__() <==> repr(x)[source]
__str__() <==> str(x)[source]
__weakref__

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.yacc.LRParser(lrtab, errorf)[source]
__init__(lrtab, errorf)[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
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 PyFoam.ThirdParty.ply.yacc.LRTable[source]

Bases: object

__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', 'read_pickle': <function read_pickle>, '__doc__': None, 'read_table': <function read_table>, '__dict__': <attribute '__dict__' of 'LRTable' objects>, '__weakref__': <attribute '__weakref__' of 'LRTable' objects>, 'bind_callables': <function bind_callables>, '__init__': <function __init__>})
__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

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

Bases: object

__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', 'bind': <function bind>, '__str__': <function __str__>, '__repr__': <function __repr__>, '__dict__': <attribute '__dict__' of 'MiniProduction' objects>, '__weakref__': <attribute '__weakref__' of 'MiniProduction' objects>, '__doc__': None, '__init__': <function __init__>})
__init__(str, name, len, func, file, line)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__repr__() <==> repr(x)[source]
__str__() <==> str(x)[source]
__weakref__

list of weak references to the object (if defined)

bind(pdict)[source]
class PyFoam.ThirdParty.ply.yacc.NullLogger[source]

Bases: object

__call__(...) <==> x(...)[source]
__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__getattribute__': <function __getattribute__>, '__dict__': <attribute '__dict__' of 'NullLogger' objects>, '__call__': <function __call__>, '__weakref__': <attribute '__weakref__' of 'NullLogger' objects>, '__doc__': None})
__getattribute__(name)[source]

x.__getattribute__(‘name’) <==> x.name

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.yacc.ParserReflect(pdict, log=None)[source]

Bases: object

__dict__ = dict_proxy({'validate_precedence': <function validate_precedence>, 'validate_modules': <function validate_modules>, 'validate_error_func': <function validate_error_func>, 'validate_all': <function validate_all>, 'get_all': <function get_all>, 'signature': <function signature>, '__module__': 'PyFoam.ThirdParty.ply.yacc', 'validate_pfunctions': <function validate_pfunctions>, '__dict__': <attribute '__dict__' of 'ParserReflect' objects>, '__weakref__': <attribute '__weakref__' of 'ParserReflect' objects>, '__init__': <function __init__>, 'validate_tokens': <function validate_tokens>, 'validate_start': <function validate_start>, 'get_start': <function get_start>, 'get_pfunctions': <function get_pfunctions>, 'get_tokens': <function get_tokens>, '__doc__': None, 'get_error_func': <function get_error_func>, 'get_precedence': <function get_precedence>})
__init__(pdict, log=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

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 PyFoam.ThirdParty.ply.yacc.PlyLogger(f)[source]

Bases: object

__dict__ = dict_proxy({'info': <function debug>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__module__': 'PyFoam.ThirdParty.ply.yacc', 'warning': <function warning>, 'critical': <function debug>, 'error': <function error>, 'debug': <function debug>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, '__doc__': None, '__init__': <function __init__>})
__init__(f)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

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

Bases: object

__dict__ = dict_proxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__nonzero__': <function __nonzero__>, '__getitem__': <function __getitem__>, 'lr_item': <function lr_item>, 'bind': <function bind>, '__str__': <function __str__>, '__doc__': None, '__len__': <function __len__>, '__dict__': <attribute '__dict__' of 'Production' objects>, '__weakref__': <attribute '__weakref__' of 'Production' objects>, 'reduced': 0, '__init__': <function __init__>, '__repr__': <function __repr__>})
__getitem__(index)[source]
__init__(number, name, prod, precedence=('right', 0), func=None, file='', line=0)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__len__()[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
__nonzero__()[source]
__repr__() <==> repr(x)[source]
__str__() <==> str(x)[source]
__weakref__

list of weak references to the object (if defined)

bind(pdict)[source]
lr_item(n)[source]
reduced = 0
exception PyFoam.ThirdParty.ply.yacc.VersionError[source]

Bases: PyFoam.ThirdParty.ply.yacc.YaccError

__module__ = 'PyFoam.ThirdParty.ply.yacc'
exception PyFoam.ThirdParty.ply.yacc.YaccError[source]

Bases: exceptions.Exception

__module__ = 'PyFoam.ThirdParty.ply.yacc'
__weakref__

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.yacc.YaccProduction(s, stack=None)[source]
__getitem__(n)[source]
__getslice__(i, j)[source]
__init__(s, stack=None)[source]
__len__()[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
__setitem__(n, v)[source]
error()[source]
lexpos(n)[source]
lexspan(n)[source]
lineno(n)[source]
linespan(n)[source]
set_lineno(n, lineno)[source]
class PyFoam.ThirdParty.ply.yacc.YaccSymbol[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
__repr__()[source]
__str__()[source]
PyFoam.ThirdParty.ply.yacc.call_errorfunc(errorfunc, token, parser)[source]
PyFoam.ThirdParty.ply.yacc.digraph(X, R, FP)[source]
PyFoam.ThirdParty.ply.yacc.errok()[source]
PyFoam.ThirdParty.ply.yacc.format_result(r)[source]
PyFoam.ThirdParty.ply.yacc.format_stack_entry(r)[source]
PyFoam.ThirdParty.ply.yacc.get_caller_module_dict(levels)[source]
PyFoam.ThirdParty.ply.yacc.parse_grammar(doc, file, line)[source]
PyFoam.ThirdParty.ply.yacc.restart()[source]
PyFoam.ThirdParty.ply.yacc.rightmost_terminal(symbols, terminals)[source]
PyFoam.ThirdParty.ply.yacc.token()[source]
PyFoam.ThirdParty.ply.yacc.traverse(x, N, stack, F, X, R, FP)[source]
PyFoam.ThirdParty.ply.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]