Package PyFoam :: Package RunDictionary :: Module ParsedParameterFile :: Class FoamStringParser
[hide private]
[frames] | no frames]

Class FoamStringParser

source code

                object --+        
                         |        
Basics.PlyParser.PlyParser --+    
                             |    
                FoamFileParser --+
                                 |
                                FoamStringParser

Convenience class that parses only a headerless OpenFOAM dictionary

Instance Methods [hide private]
 
__init__(self, content, debug=False)
Constructs the parser and the lexer
source code
 
__str__(self)
str(x)
source code

Inherited from FoamFileParser: __contains__, __delitem__, __getitem__, __iter__, __setitem__, addCommentToDecorations, addNewlinesToDecorations, addToDecoration, condenseAllPreFixLists, directory, getData, getDecoration, getHeader, p_boundaryDict, p_dictbody, p_dictionary, p_dictitem, p_dictkey, p_dictline, p_dimension, p_empty, p_enter_dict, p_error, p_exit_dict, p_fieldvalue_nonuniform, p_fieldvalue_uniform, p_float, p_global, p_gotHeader, p_header, p_include, p_inputMode, p_integer, p_item, p_itemlist, p_list, p_longitem, p_macro, p_noBody, p_noHeader, p_number, p_pitem, p_pitemlist, p_prelist, p_prelist_seen, p_pureList, p_pureListWithHeader, p_remove, p_substitution, p_symmtensor, p_tensor, p_unparsed, p_vector, p_wlist, p_word, p_wordlist, parserError, printContext, resetDecoration, t_NAME, t_SUBSTITUITION, t_ccode_comment, t_error, t_newline, t_unparsed_error, t_unparsed_left, t_unparsed_right

Inherited from Basics.PlyParser.PlyParser: parse

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

Class Variables [hide private]

Inherited from FoamFileParser: literals, reserved, states, t_FCONST, t_ICONST, t_KANALGITTER, t_SCONST, t_ignore, t_unparsed_ignore, tokens

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 

Constructs the parser and the lexer

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

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)