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

Class ChemkinParser

                object --+    
                         |    
Basics.PlyParser.PlyParser --+
                             |
                            ChemkinParser
Known Subclasses:

Overclass for the Chemkin-Parsers

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

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', 'REACT...

Inherited from Basics.PlyParser.PlyParser: precedence

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

 

Constructs the parser and the lexer

Parameters:
  • content - the string to be parsed
  • debug - output debug information during parsing
Overrides: object.__init__

Class Variable Details [hide private]

tokens

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