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__
= mappingproxy({'precedence': (), '__weakref__': <attribute '__weakref__' of 'PlyParser' objects>, 'tokens': (), '__init__': <function PlyParser.__init__>, '__module__': 'PyFoam.Basics.PlyParser', '__doc__': '\n Base class for a lexer/parser that has the rules defined as methods\n ', '__dict__': <attribute '__dict__' of 'PlyParser' objects>, 'parse': <function PlyParser.parse>})¶
-
__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
= ()¶
-