7.1.1.2.1.1.1.5. pycropml.transpiler.generators.fortranGenerator module¶
-
class
pycropml.transpiler.generators.fortranGenerator.
FortranCompo
(tree=None, model=None, name=None)[source]¶ Bases:
pycropml.transpiler.generators.fortranGenerator.FortranGenerator
This class used to generates states, rates and auxiliary classes for Fortran90 language.
-
class
pycropml.transpiler.generators.fortranGenerator.
FortranGenerator
(tree, model=None, name=None)[source]¶ Bases:
pycropml.transpiler.codeGenerator.CodeGenerator
,pycropml.transpiler.rules.fortranRules.FortranRules
This class contains the specific properties of fortran language and use the NodeVisitor to generate a fortran code source from a well formed syntax tree.
-
binop_precedence
= {'!=': 4, '%': 11, '&': 7, '*': 11, '**': 12, '+': 9, '-': 9, '/': 11, '//': 11, '<': 4, '<<': 8, '<=': 4, '==': 4, '>': 4, '>=': 4, '>>': 8, '@': 11, '^': 6, 'and': 2, 'in': 4, 'is': 4, 'is_not': 4, 'not_in': 4, 'or': 1, '|': 5}¶
-
doc
= None¶ # get constant parameters in models if inp.inputtype==”parameter”:
#print(inp.name, model.name) if inp.parametercategory==”constant”:
self.mod_parameters.append(inp.name)Type: for inp in self.model.inputs
-
unop_precedence
= {'!': 3, '+': 10, '-': 10, 'not': 3, '~': 10}¶
-