pureyaml.ply package¶
Submodules¶
pureyaml.ply.cpp module¶
-
pureyaml.ply.cpp.
CPP_INTEGER
(t)[source]¶ (((((0x)|(0X))[0-9a-fA-F]+)|(d+))([uU][lL]|[lL][uU]|[uU]|[lL])?)
-
class
pureyaml.ply.cpp.
Macro
(name, value, arglist=None, variadic=False)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__dict__': <attribute '__dict__' of 'Macro' objects>, '__module__': 'pureyaml.ply.cpp', '__weakref__': <attribute '__weakref__' of 'Macro' objects>, '__doc__': None, '__init__': <function __init__ at 0x7f6241ad1398>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.cpp'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.cpp.
Preprocessor
(lexer=None)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.cpp', 'add_path': <function add_path at 0x7f6241b020c8>, 'error': <function error at 0x7f6241ad1410>, 'macro_expand_args': <function macro_expand_args at 0x7f6241b02320>, 'lexprobe': <function lexprobe at 0x7f6241b02050>, 'parse': <function parse at 0x7f6241ad1ed8>, 'undef': <function undef at 0x7f6241ad1e60>, '__dict__': <attribute '__dict__' of 'Preprocessor' objects>, 'collect_args': <function collect_args at 0x7f6241b02230>, '__weakref__': <attribute '__weakref__' of 'Preprocessor' objects>, '__init__': <function __init__ at 0x7f6241ad1758>, 'parsegen': <function parsegen at 0x7f6241b02488>, 'evalexpr': <function evalexpr at 0x7f6241b02410>, 'expand_macros': <function expand_macros at 0x7f6241b02398>, 'macro_prescan': <function macro_prescan at 0x7f6241b022a8>, 'tokenstrip': <function tokenstrip at 0x7f6241b021b8>, 'token': <function token at 0x7f6241ad1050>, 'tokenize': <function tokenize at 0x7f6241ad1488>, 'include': <function include at 0x7f6241b02500>, '__doc__': None, 'group_lines': <function group_lines at 0x7f6241b02140>, 'define': <function define at 0x7f6241b02578>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.cpp'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
pureyaml.ply.cpp.
t_CPP_INTEGER
(t)¶ (((((0x)|(0X))[0-9a-fA-F]+)|(d+))([uU][lL]|[lL][uU]|[uU]|[lL])?)
pureyaml.ply.ctokens module¶
pureyaml.ply.lex module¶
-
exception
pureyaml.ply.lex.
LexError
(message, s)[source]¶ Bases:
exceptions.Exception
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.lex'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.lex.
LexToken
[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.lex', '__str__': <function __str__ at 0x7f62444797d0>, '__repr__': <function __repr__ at 0x7f6244479848>, '__dict__': <attribute '__dict__' of 'LexToken' objects>, '__weakref__': <attribute '__weakref__' of 'LexToken' objects>, '__doc__': None})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.lex'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.lex.
LexerReflect
(ldict, log=None, reflags=0)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.lex', 'get_states': <function get_states at 0x7f6244488848>, 'validate_tokens': <function validate_tokens at 0x7f62444886e0>, 'get_rules': <function get_rules at 0x7f62444888c0>, 'validate_all': <function validate_all at 0x7f62444885f0>, 'get_all': <function get_all at 0x7f6244488578>, 'validate_module': <function validate_module at 0x7f62444889b0>, 'get_literals': <function get_literals at 0x7f6244488758>, '__dict__': <attribute '__dict__' of 'LexerReflect' objects>, 'validate_literals': <function validate_literals at 0x7f62444887d0>, 'get_tokens': <function get_tokens at 0x7f6244488668>, 'validate_rules': <function validate_rules at 0x7f6244488938>, '__weakref__': <attribute '__weakref__' of 'LexerReflect' objects>, '__doc__': None, '__init__': <function __init__ at 0x7f6244488500>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.lex'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.lex.
NullLogger
[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.lex', '__getattribute__': <function __getattribute__ at 0x7f6244479aa0>, '__dict__': <attribute '__dict__' of 'NullLogger' objects>, '__call__': <function __call__ at 0x7f6244479b18>, '__weakref__': <attribute '__weakref__' of 'NullLogger' objects>, '__doc__': None})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.lex'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.lex.
PlyLogger
(f)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'info': <function critical at 0x7f6244479938>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__module__': 'pureyaml.ply.lex', 'critical': <function critical at 0x7f6244479938>, 'error': <function error at 0x7f6244479a28>, 'debug': <function critical at 0x7f6244479938>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, 'warning': <function warning at 0x7f62444799b0>, '__doc__': None, '__init__': <function __init__ at 0x7f62444798c0>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.lex'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
debug
(msg, *args, **kwargs)¶
-
info
(msg, *args, **kwargs)¶
-
-
pureyaml.ply.lex.
Token
(r)¶
pureyaml.ply.yacc module¶
-
class
pureyaml.ply.yacc.
Grammar
(terminals)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', 'unused_precedence': <function unused_precedence at 0x7f62444a8f50>, '__getitem__': <function __getitem__ at 0x7f62444a8b18>, 'add_production': <function add_production at 0x7f62444a8c08>, 'set_start': <function set_start at 0x7f62444a8c80>, 'compute_first': <function compute_first at 0x7f62444a90c8>, '__dict__': <attribute '__dict__' of 'Grammar' objects>, '__weakref__': <attribute '__weakref__' of 'Grammar' objects>, '__init__': <function __init__ at 0x7f62444a8a28>, '_first': <function _first at 0x7f62444a9050>, 'find_unreachable': <function find_unreachable at 0x7f62444a8cf8>, 'unused_terminals': <function unused_terminals at 0x7f62444a8e60>, 'set_precedence': <function set_precedence at 0x7f62444a8b90>, 'compute_follow': <function compute_follow at 0x7f62444a9140>, 'unused_rules': <function unused_rules at 0x7f62444a8ed8>, 'undefined_symbols': <function undefined_symbols at 0x7f62444a8de8>, 'build_lritems': <function build_lritems at 0x7f62444a91b8>, '__doc__': None, '__len__': <function __len__ at 0x7f62444a8aa0>, 'infinite_cycles': <function infinite_cycles at 0x7f62444a8d70>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
exception
pureyaml.ply.yacc.
GrammarError
[source]¶ Bases:
pureyaml.ply.yacc.YaccError
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
-
exception
pureyaml.ply.yacc.
LALRError
[source]¶ Bases:
pureyaml.ply.yacc.YaccError
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
-
class
pureyaml.ply.yacc.
LRGeneratedTable
(grammar, method='LALR', log=None)[source]¶ Bases:
pureyaml.ply.yacc.LRTable
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
-
class
pureyaml.ply.yacc.
LRItem
(p, n)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', '__str__': <function __str__ at 0x7f62444a88c0>, '__repr__': <function __repr__ at 0x7f62444a8938>, '__dict__': <attribute '__dict__' of 'LRItem' objects>, '__weakref__': <attribute '__weakref__' of 'LRItem' objects>, '__doc__': None, '__init__': <function __init__ at 0x7f62444a8848>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
LRParser
(lrtab, errorf)[source]¶ -
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
-
class
pureyaml.ply.yacc.
LRTable
[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', 'read_pickle': <function read_pickle at 0x7f62444a9320>, '__doc__': None, 'read_table': <function read_table at 0x7f62444a92a8>, '__dict__': <attribute '__dict__' of 'LRTable' objects>, '__weakref__': <attribute '__weakref__' of 'LRTable' objects>, 'bind_callables': <function bind_callables at 0x7f62444a9398>, '__init__': <function __init__ at 0x7f62444a9230>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
MiniProduction
(str, name, len, func, file, line)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', 'bind': <function bind at 0x7f62444a87d0>, '__str__': <function __str__ at 0x7f62444a86e0>, '__repr__': <function __repr__ at 0x7f62444a8758>, '__dict__': <attribute '__dict__' of 'MiniProduction' objects>, '__weakref__': <attribute '__weakref__' of 'MiniProduction' objects>, '__doc__': None, '__init__': <function __init__ at 0x7f62444a8668>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
NullLogger
[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', '__getattribute__': <function __getattribute__ at 0x7f6244499410>, '__dict__': <attribute '__dict__' of 'NullLogger' objects>, '__call__': <function __call__ at 0x7f6244499488>, '__weakref__': <attribute '__weakref__' of 'NullLogger' objects>, '__doc__': None})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
ParserReflect
(pdict, log=None)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'validate_precedence': <function validate_precedence at 0x7f62444aa398>, 'validate_modules': <function validate_modules at 0x7f62444a9f50>, 'validate_error_func': <function validate_error_func at 0x7f62444aa1b8>, 'validate_all': <function validate_all at 0x7f62444a9e60>, 'get_all': <function get_all at 0x7f62444a9de8>, 'signature': <function signature at 0x7f62444a9ed8>, '__module__': 'pureyaml.ply.yacc', 'validate_pfunctions': <function validate_pfunctions at 0x7f62444aa488>, '__dict__': <attribute '__dict__' of 'ParserReflect' objects>, '__weakref__': <attribute '__weakref__' of 'ParserReflect' objects>, '__init__': <function __init__ at 0x7f62444a9d70>, 'validate_tokens': <function validate_tokens at 0x7f62444aa2a8>, 'validate_start': <function validate_start at 0x7f62444aa0c8>, 'get_start': <function get_start at 0x7f62444aa050>, 'get_pfunctions': <function get_pfunctions at 0x7f62444aa410>, 'get_tokens': <function get_tokens at 0x7f62444aa230>, '__doc__': None, 'get_error_func': <function get_error_func at 0x7f62444aa140>, 'get_precedence': <function get_precedence at 0x7f62444aa320>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
PlyLogger
(f)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'info': <function debug at 0x7f62444992a8>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__module__': 'pureyaml.ply.yacc', 'warning': <function warning at 0x7f6244499320>, 'critical': <function debug at 0x7f62444992a8>, 'error': <function error at 0x7f6244499398>, 'debug': <function debug at 0x7f62444992a8>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, '__doc__': None, '__init__': <function __init__ at 0x7f6244499230>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
critical
(msg, *args, **kwargs)¶
-
info
(msg, *args, **kwargs)¶
-
-
class
pureyaml.ply.yacc.
Production
(number, name, prod, precedence=('right', 0), func=None, file='', line=0)[source]¶ Bases:
object
-
__dict__
= dict_proxy({'__module__': 'pureyaml.ply.yacc', '__nonzero__': <function __nonzero__ at 0x7f62444a8488>, '__getitem__': <function __getitem__ at 0x7f62444a8500>, 'lr_item': <function lr_item at 0x7f62444a8578>, 'bind': <function bind at 0x7f62444a85f0>, '__str__': <function __str__ at 0x7f62444a8320>, '__doc__': None, '__len__': <function __len__ at 0x7f62444a8410>, '__dict__': <attribute '__dict__' of 'Production' objects>, '__weakref__': <attribute '__weakref__' of 'Production' objects>, 'reduced': 0, '__init__': <function __init__ at 0x7f62444a82a8>, '__repr__': <function __repr__ at 0x7f62444a8398>})¶
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
reduced
= 0¶
-
-
exception
pureyaml.ply.yacc.
VersionError
[source]¶ Bases:
pureyaml.ply.yacc.YaccError
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
-
exception
pureyaml.ply.yacc.
YaccError
[source]¶ Bases:
exceptions.Exception
-
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pureyaml.ply.yacc.
YaccProduction
(s, stack=None)[source]¶ -
__doc__
= None¶
-
__module__
= 'pureyaml.ply.yacc'¶
-