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>})¶
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
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'¶
-
-
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__>})¶
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
PyFoam.ThirdParty.ply.yacc.
LRParser
(lrtab, errorf)[source]¶ -
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
-
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__>})¶
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
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'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
PyFoam.ThirdParty.ply.yacc.
NullLogger
[source]¶ Bases:
object
-
__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})¶
-
__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>})¶
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
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__>})¶
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
critical
(msg, *args, **kwargs)¶
-
info
(msg, *args, **kwargs)¶
-
-
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__>})¶
-
__init__
(number, name, prod, precedence=('right', 0), func=None, file='', line=0)[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)
-
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]¶ -
-
__module__
= 'PyFoam.ThirdParty.ply.yacc'¶
-