PyFoam.ThirdParty.ply.yacc module

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

Bases: object

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

Initialize self. See help(type(self)) for accurate 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]

Initialize self. See help(type(self)) for accurate 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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function LRItem.__init__>, '__str__': <function LRItem.__str__>, '__repr__': <function LRItem.__repr__>, '__dict__': <attribute '__dict__' of 'LRItem' objects>, '__weakref__': <attribute '__weakref__' of 'LRItem' objects>, '__doc__': None})
__init__(p, n)[source]

Initialize self. See help(type(self)) for accurate signature.

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

Return repr(self).

__str__()[source]

Return str(self).

__weakref__

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.yacc.LRParser(lrtab, errorf)[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function LRParser.__init__>, 'errok': <function LRParser.errok>, 'restart': <function LRParser.restart>, 'set_defaulted_states': <function LRParser.set_defaulted_states>, 'disable_defaulted_states': <function LRParser.disable_defaulted_states>, 'parse': <function LRParser.parse>, 'parsedebug': <function LRParser.parsedebug>, 'parseopt': <function LRParser.parseopt>, 'parseopt_notrack': <function LRParser.parseopt_notrack>, '__dict__': <attribute '__dict__' of 'LRParser' objects>, '__weakref__': <attribute '__weakref__' of 'LRParser' objects>, '__doc__': None})
__init__(lrtab, errorf)[source]

Initialize self. See help(type(self)) for accurate signature.

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

list of weak references to the object (if defined)

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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function LRTable.__init__>, 'read_table': <function LRTable.read_table>, 'read_pickle': <function LRTable.read_pickle>, 'bind_callables': <function LRTable.bind_callables>, '__dict__': <attribute '__dict__' of 'LRTable' objects>, '__weakref__': <attribute '__weakref__' of 'LRTable' objects>, '__doc__': None})
__init__()[source]

Initialize self. See help(type(self)) for accurate 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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function MiniProduction.__init__>, '__str__': <function MiniProduction.__str__>, '__repr__': <function MiniProduction.__repr__>, 'bind': <function MiniProduction.bind>, '__dict__': <attribute '__dict__' of 'MiniProduction' objects>, '__weakref__': <attribute '__weakref__' of 'MiniProduction' objects>, '__doc__': None})
__init__(str, name, len, func, file, line)[source]

Initialize self. See help(type(self)) for accurate signature.

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

Return repr(self).

__str__()[source]

Return str(self).

__weakref__

list of weak references to the object (if defined)

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

Bases: object

__call__(*args, **kwargs)[source]

Call self as a function.

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

Return getattr(self, 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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function ParserReflect.__init__>, 'get_all': <function ParserReflect.get_all>, 'validate_all': <function ParserReflect.validate_all>, 'signature': <function ParserReflect.signature>, 'validate_modules': <function ParserReflect.validate_modules>, 'get_start': <function ParserReflect.get_start>, 'validate_start': <function ParserReflect.validate_start>, 'get_error_func': <function ParserReflect.get_error_func>, 'validate_error_func': <function ParserReflect.validate_error_func>, 'get_tokens': <function ParserReflect.get_tokens>, 'validate_tokens': <function ParserReflect.validate_tokens>, 'get_precedence': <function ParserReflect.get_precedence>, 'validate_precedence': <function ParserReflect.validate_precedence>, 'get_pfunctions': <function ParserReflect.get_pfunctions>, 'validate_pfunctions': <function ParserReflect.validate_pfunctions>, '__dict__': <attribute '__dict__' of 'ParserReflect' objects>, '__weakref__': <attribute '__weakref__' of 'ParserReflect' objects>, '__doc__': None})
__init__(pdict, log=None)[source]

Initialize self. See help(type(self)) for accurate 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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function PlyLogger.__init__>, 'debug': <function PlyLogger.debug>, 'info': <function PlyLogger.debug>, 'warning': <function PlyLogger.warning>, 'error': <function PlyLogger.error>, 'critical': <function PlyLogger.debug>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, '__doc__': None})
__init__(f)[source]

Initialize self. See help(type(self)) for accurate 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__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', 'reduced': 0, '__init__': <function Production.__init__>, '__str__': <function Production.__str__>, '__repr__': <function Production.__repr__>, '__len__': <function Production.__len__>, '__nonzero__': <function Production.__nonzero__>, '__getitem__': <function Production.__getitem__>, 'lr_item': <function Production.lr_item>, 'bind': <function Production.bind>, '__dict__': <attribute '__dict__' of 'Production' objects>, '__weakref__': <attribute '__weakref__' of 'Production' objects>, '__doc__': None})
__getitem__(index)[source]
__init__(number, name, prod, precedence=('right', 0), func=None, file='', line=0)[source]

Initialize self. See help(type(self)) for accurate signature.

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

Return repr(self).

__str__()[source]

Return str(self).

__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: 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]

Bases: object

__dict__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.yacc', '__init__': <function YaccProduction.__init__>, '__getitem__': <function YaccProduction.__getitem__>, '__setitem__': <function YaccProduction.__setitem__>, '__getslice__': <function YaccProduction.__getslice__>, '__len__': <function YaccProduction.__len__>, 'lineno': <function YaccProduction.lineno>, 'set_lineno': <function YaccProduction.set_lineno>, 'linespan': <function YaccProduction.linespan>, 'lexpos': <function YaccProduction.lexpos>, 'lexspan': <function YaccProduction.lexspan>, 'error': <function YaccProduction.error>, '__dict__': <attribute '__dict__' of 'YaccProduction' objects>, '__weakref__': <attribute '__weakref__' of 'YaccProduction' objects>, '__doc__': None})
__getitem__(n)[source]
__getslice__(i, j)[source]
__init__(s, stack=None)[source]

Initialize self. See help(type(self)) for accurate signature.

__len__()[source]
__module__ = 'PyFoam.ThirdParty.ply.yacc'
__setitem__(n, v)[source]
__weakref__

list of weak references to the object (if defined)

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]

Bases: object

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

Return repr(self).

__str__()[source]

Return str(self).

__weakref__

list of weak references to the object (if defined)

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]