PyFoam.Basics.PlyParser module¶
Base class for all parser classes based on PLY
Most of this class was shamelessly stolen from the examples
-
class
PyFoam.Basics.PlyParser.
PlyParser
(**kw)[source]¶ Bases:
object
Base class for a lexer/parser that has the rules defined as methods
-
__dict__
= dict_proxy({'parse': <function parse>, 'tokens': (), '__module__': 'PyFoam.Basics.PlyParser', 'precedence': (), '__dict__': <attribute '__dict__' of 'PlyParser' objects>, '__weakref__': <attribute '__weakref__' of 'PlyParser' objects>, '__doc__': '\n Base class for a lexer/parser that has the rules defined as methods\n ', '__init__': <function __init__>})¶
-
__module__
= 'PyFoam.Basics.PlyParser'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
parse
(content)[source]¶ Do the actual parsing :param content: String that is to be parsed :return: Result of the parsing
-
precedence
= ()¶
-
tokens
= ()¶
-