PyFoam.ThirdParty.ply.lex module

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

Bases: Exception

__init__(message, s)[source]

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

__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({'__module__': 'PyFoam.ThirdParty.ply.lex', '__str__': <function LexToken.__str__>, '__repr__': <function LexToken.__repr__>, '__dict__': <attribute '__dict__' of 'LexToken' objects>, '__weakref__': <attribute '__weakref__' of 'LexToken' objects>, '__doc__': None})
__module__ = 'PyFoam.ThirdParty.ply.lex'
__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

__weakref__

list of weak references to the object (if defined)

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

Bases: object

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

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

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

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

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

Call self as a function.

__dict__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.lex', '__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.lex'
__weakref__

list of weak references to the object (if defined)

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

Bases: object

__dict__ = mappingproxy({'__module__': 'PyFoam.ThirdParty.ply.lex', '__init__': <function PlyLogger.__init__>, 'critical': <function PlyLogger.critical>, 'warning': <function PlyLogger.warning>, 'error': <function PlyLogger.error>, 'info': <function PlyLogger.critical>, 'debug': <function PlyLogger.critical>, '__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.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]