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 0x7fc3b774b5f0>})¶
-
__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 0x7fc3b774bde8>, 'error': <function error at 0x7fc3b774b7d0>, 'macro_expand_args': <function macro_expand_args at 0x7fc3b779bb90>, 'lexprobe': <function lexprobe at 0x7fc3b774b8c0>, 'parse': <function parse at 0x7fc3b779b758>, 'undef': <function undef at 0x7fc3b779b320>, '__dict__': <attribute '__dict__' of 'Preprocessor' objects>, 'collect_args': <function collect_args at 0x7fc3b779baa0>, '__weakref__': <attribute '__weakref__' of 'Preprocessor' objects>, '__init__': <function __init__ at 0x7fc3b774bd70>, 'parsegen': <function parsegen at 0x7fc3b779b1b8>, 'evalexpr': <function evalexpr at 0x7fc3b779b230>, 'expand_macros': <function expand_macros at 0x7fc3b779b7d0>, 'macro_prescan': <function macro_prescan at 0x7fc3b779b5f0>, 'tokenstrip': <function tokenstrip at 0x7fc3b774bf50>, 'token': <function token at 0x7fc3b779bb18>, 'tokenize': <function tokenize at 0x7fc3b774b320>, 'include': <function include at 0x7fc3b779b410>, '__doc__': None, 'group_lines': <function group_lines at 0x7fc3b774b500>, 'define': <function define at 0x7fc3b779b500>})¶
-
__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 0x7fc3ba10c500>, '__repr__': <function __repr__ at 0x7fc3ba10c578>, '__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 0x7fc3ba11a578>, 'validate_tokens': <function validate_tokens at 0x7fc3ba11a410>, 'get_rules': <function get_rules at 0x7fc3ba11a5f0>, 'validate_all': <function validate_all at 0x7fc3ba11a320>, 'get_all': <function get_all at 0x7fc3ba11a2a8>, 'validate_module': <function validate_module at 0x7fc3ba11a6e0>, 'get_literals': <function get_literals at 0x7fc3ba11a488>, '__dict__': <attribute '__dict__' of 'LexerReflect' objects>, 'validate_literals': <function validate_literals at 0x7fc3ba11a500>, 'get_tokens': <function get_tokens at 0x7fc3ba11a398>, 'validate_rules': <function validate_rules at 0x7fc3ba11a668>, '__weakref__': <attribute '__weakref__' of 'LexerReflect' objects>, '__doc__': None, '__init__': <function __init__ at 0x7fc3ba11a230>})¶
-
__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 0x7fc3ba10c7d0>, '__dict__': <attribute '__dict__' of 'NullLogger' objects>, '__call__': <function __call__ at 0x7fc3ba10c848>, '__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 0x7fc3ba10c668>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__module__': 'pureyaml.ply.lex', 'critical': <function critical at 0x7fc3ba10c668>, 'error': <function error at 0x7fc3ba10c758>, 'debug': <function critical at 0x7fc3ba10c668>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, 'warning': <function warning at 0x7fc3ba10c6e0>, '__doc__': None, '__init__': <function __init__ at 0x7fc3ba10c5f0>})¶
-
__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 0x7fc3ba13ac80>, '__getitem__': <function __getitem__ at 0x7fc3ba13a848>, 'add_production': <function add_production at 0x7fc3ba13a938>, 'set_start': <function set_start at 0x7fc3ba13a9b0>, 'compute_first': <function compute_first at 0x7fc3ba13ad70>, '__dict__': <attribute '__dict__' of 'Grammar' objects>, '__weakref__': <attribute '__weakref__' of 'Grammar' objects>, '__init__': <function __init__ at 0x7fc3ba13a758>, '_first': <function _first at 0x7fc3ba13acf8>, 'find_unreachable': <function find_unreachable at 0x7fc3ba13aa28>, 'unused_terminals': <function unused_terminals at 0x7fc3ba13ab90>, 'set_precedence': <function set_precedence at 0x7fc3ba13a8c0>, 'compute_follow': <function compute_follow at 0x7fc3ba13ade8>, 'unused_rules': <function unused_rules at 0x7fc3ba13ac08>, 'undefined_symbols': <function undefined_symbols at 0x7fc3ba13ab18>, 'build_lritems': <function build_lritems at 0x7fc3ba13ae60>, '__doc__': None, '__len__': <function __len__ at 0x7fc3ba13a7d0>, 'infinite_cycles': <function infinite_cycles at 0x7fc3ba13aaa0>})¶
-
__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 0x7fc3ba13a5f0>, '__repr__': <function __repr__ at 0x7fc3ba13a668>, '__dict__': <attribute '__dict__' of 'LRItem' objects>, '__weakref__': <attribute '__weakref__' of 'LRItem' objects>, '__doc__': None, '__init__': <function __init__ at 0x7fc3ba13a578>})¶
-
__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 0x7fc3ba13b050>, '__doc__': None, 'read_table': <function read_table at 0x7fc3ba13af50>, '__dict__': <attribute '__dict__' of 'LRTable' objects>, '__weakref__': <attribute '__weakref__' of 'LRTable' objects>, 'bind_callables': <function bind_callables at 0x7fc3ba13b0c8>, '__init__': <function __init__ at 0x7fc3ba13aed8>})¶
-
__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 0x7fc3ba13a500>, '__str__': <function __str__ at 0x7fc3ba13a410>, '__repr__': <function __repr__ at 0x7fc3ba13a488>, '__dict__': <attribute '__dict__' of 'MiniProduction' objects>, '__weakref__': <attribute '__weakref__' of 'MiniProduction' objects>, '__doc__': None, '__init__': <function __init__ at 0x7fc3ba13a398>})¶
-
__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 0x7fc3ba137140>, '__dict__': <attribute '__dict__' of 'NullLogger' objects>, '__call__': <function __call__ at 0x7fc3ba1371b8>, '__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 0x7fc3ba13c0c8>, 'validate_modules': <function validate_modules at 0x7fc3ba13bc80>, 'validate_error_func': <function validate_error_func at 0x7fc3ba13be60>, 'validate_all': <function validate_all at 0x7fc3ba13bb90>, 'get_all': <function get_all at 0x7fc3ba13bb18>, 'signature': <function signature at 0x7fc3ba13bc08>, '__module__': 'pureyaml.ply.yacc', 'validate_pfunctions': <function validate_pfunctions at 0x7fc3ba13c1b8>, '__dict__': <attribute '__dict__' of 'ParserReflect' objects>, '__weakref__': <attribute '__weakref__' of 'ParserReflect' objects>, '__init__': <function __init__ at 0x7fc3ba13baa0>, 'validate_tokens': <function validate_tokens at 0x7fc3ba13bf50>, 'validate_start': <function validate_start at 0x7fc3ba13bd70>, 'get_start': <function get_start at 0x7fc3ba13bcf8>, 'get_pfunctions': <function get_pfunctions at 0x7fc3ba13c140>, 'get_tokens': <function get_tokens at 0x7fc3ba13bed8>, '__doc__': None, 'get_error_func': <function get_error_func at 0x7fc3ba13bde8>, 'get_precedence': <function get_precedence at 0x7fc3ba13c050>})¶
-
__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 0x7fc3ba11af50>, '__dict__': <attribute '__dict__' of 'PlyLogger' objects>, '__module__': 'pureyaml.ply.yacc', 'warning': <function warning at 0x7fc3ba137050>, 'critical': <function debug at 0x7fc3ba11af50>, 'error': <function error at 0x7fc3ba1370c8>, 'debug': <function debug at 0x7fc3ba11af50>, '__weakref__': <attribute '__weakref__' of 'PlyLogger' objects>, '__doc__': None, '__init__': <function __init__ at 0x7fc3ba11aed8>})¶
-
__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 0x7fc3ba13a1b8>, '__getitem__': <function __getitem__ at 0x7fc3ba13a230>, 'lr_item': <function lr_item at 0x7fc3ba13a2a8>, 'bind': <function bind at 0x7fc3ba13a320>, '__str__': <function __str__ at 0x7fc3ba13a050>, '__doc__': None, '__len__': <function __len__ at 0x7fc3ba13a140>, '__dict__': <attribute '__dict__' of 'Production' objects>, '__weakref__': <attribute '__weakref__' of 'Production' objects>, 'reduced': 0, '__init__': <function __init__ at 0x7fc3ba137f50>, '__repr__': <function __repr__ at 0x7fc3ba13a0c8>})¶
-
__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'¶
-