Package PyFoam :: Package RunDictionary :: Module ChemkinFiles :: Class ChemkinParser
[hide private]
[frames] | no frames]

Class ChemkinParser

source code

                object --+    
                         |    
Basics.PlyParser.PlyParser --+
                             |
                            ChemkinParser
Known Subclasses:
ChemkinReactionsParser, ChemkinThermoParser

Overclass for the Chemkin-Parsers

Instance Methods [hide private]
  __init__(self, content, debug=False)
  printContext(self, c, ind)
Prints the context of the current index
  parserError(self, text, c, ind)
Prints the error message of the parser and exit

Inherited from Basics.PlyParser.PlyParser: parse

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
  tokens = ('THERMO', 'ALL', 'END', 'ELEMENTS', 'SPECIE', 'REAC...

Inherited from Basics.PlyParser.PlyParser: precedence


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, content, debug=False)
(Constructor)

source code 
Parameters:
  • content - the string to be parsed
  • debug - output debug information during parsing
Overrides: Basics.PlyParser.PlyParser.__init__

printContext(self, c, ind)

source code 
Prints the context of the current index

parserError(self, text, c, ind)

source code 
Prints the error message of the parser and exit

Class Variable Details [hide private]

tokens

None
Value:
('THERMO', 'ALL', 'END', 'ELEMENTS', 'SPECIE', 'REACTIONS')