PyFoam.ThirdParty.ply.lex module

exception PyFoam.ThirdParty.ply.lex.LexError(message, s)[source]

Bases: Exception

__init__(message, s)[source]
__module__ = 'PyFoam.ThirdParty.ply.lex'
__weakref__

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.lex.LexToken[source]

Bases: object

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

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.lex.Lexer[source]

Bases: object

__dict__ = mappingproxy({'current_state': <function Lexer.current_state>, '__init__': <function Lexer.__init__>, '__module__': 'PyFoam.ThirdParty.ply.lex', 'next': <function Lexer.next>, 'input': <function Lexer.input>, 'readtab': <function Lexer.readtab>, 'pop_state': <function Lexer.pop_state>, 'push_state': <function Lexer.push_state>, '__dict__': <attribute '__dict__' of 'Lexer' objects>, '__weakref__': <attribute '__weakref__' of 'Lexer' objects>, '__doc__': None, 'begin': <function Lexer.begin>, 'skip': <function Lexer.skip>, 'clone': <function Lexer.clone>, 'writetab': <function Lexer.writetab>, '__iter__': <function Lexer.__iter__>, 'token': <function Lexer.token>, '__next__': <function Lexer.next>})
__init__()[source]
__iter__()[source]
__module__ = 'PyFoam.ThirdParty.ply.lex'
__next__()
__weakref__

list of weak references to the object (if defined)

begin(state)[source]
clone(object=None)[source]
current_state()[source]
input(s)[source]
next()[source]
pop_state()[source]
push_state(state)[source]
readtab(tabfile, fdict)[source]
skip(n)[source]
token()[source]
writetab(lextab, outputdir='')[source]
class PyFoam.ThirdParty.ply.lex.LexerReflect(ldict, log=None, reflags=0)[source]

Bases: object

__dict__ = mappingproxy({'get_literals': <function LexerReflect.get_literals>, '__weakref__': <attribute '__weakref__' of 'LexerReflect' objects>, '__init__': <function LexerReflect.__init__>, '__doc__': None, 'get_all': <function LexerReflect.get_all>, 'validate_literals': <function LexerReflect.validate_literals>, 'get_rules': <function LexerReflect.get_rules>, 'validate_rules': <function LexerReflect.validate_rules>, 'get_tokens': <function LexerReflect.get_tokens>, 'validate_module': <function LexerReflect.validate_module>, 'validate_tokens': <function LexerReflect.validate_tokens>, '__module__': 'PyFoam.ThirdParty.ply.lex', '__dict__': <attribute '__dict__' of 'LexerReflect' objects>, 'validate_all': <function LexerReflect.validate_all>, 'get_states': <function LexerReflect.get_states>})
__init__(ldict, log=None, reflags=0)[source]
__module__ = 'PyFoam.ThirdParty.ply.lex'
__weakref__

list of weak references to the object (if defined)

get_all()[source]
get_literals()[source]
get_rules()[source]
get_states()[source]
get_tokens()[source]
validate_all()[source]
validate_literals()[source]
validate_module(module)[source]
validate_rules()[source]
validate_tokens()[source]
class PyFoam.ThirdParty.ply.lex.NullLogger[source]

Bases: object

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

list of weak references to the object (if defined)

class PyFoam.ThirdParty.ply.lex.PlyLogger(f)[source]

Bases: object

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

list of weak references to the object (if defined)

critical(msg, *args, **kwargs)[source]
debug(msg, *args, **kwargs)
error(msg, *args, **kwargs)[source]
info(msg, *args, **kwargs)
warning(msg, *args, **kwargs)[source]
PyFoam.ThirdParty.ply.lex.TOKEN(r)[source]
PyFoam.ThirdParty.ply.lex.Token(r)
PyFoam.ThirdParty.ply.lex._form_master_re(relist, reflags, ldict, toknames)[source]
PyFoam.ThirdParty.ply.lex._funcs_to_names(funclist, namelist)[source]
PyFoam.ThirdParty.ply.lex._get_regex(func)[source]
PyFoam.ThirdParty.ply.lex._names_to_funcs(namelist, fdict)[source]
PyFoam.ThirdParty.ply.lex._statetoken(s, names)[source]
PyFoam.ThirdParty.ply.lex.get_caller_module_dict(levels)[source]
PyFoam.ThirdParty.ply.lex.lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', reflags=0, nowarn=False, outputdir=None, debuglog=None, errorlog=None)[source]
PyFoam.ThirdParty.ply.lex.runmain(lexer=None, data=None)[source]