6.1.1.2.1.2.1.7. pycropml.transpiler.generators.csharpGenerator module¶
- class pycropml.transpiler.generators.csharpGenerator.CsharpCompo(tree=None, model=None, name=None)[source]¶
Bases:
CsharpTrans,CsharpGeneratorThis class used to generates states, rates, auxiliary and exogenous classes for C# languages.
- class pycropml.transpiler.generators.csharpGenerator.CsharpGenerator(tree, model=None, name=None)[source]¶
Bases:
CodeGenerator,CsharpRulesThis class contains the specific properties of Csharp language and use the NodeVisitor to generate a csharp code source from a well formed syntax tree.
- class pycropml.transpiler.generators.csharpGenerator.CsharpTrans(models)[source]¶
Bases:
CodeGenerator,CsharpRulesThis class used to generates states, rates, auxiliary and exogenous classes for C# languages.
- DATATYPE = {'BOOLEAN': 'bool', 'DATE': 'DateTime', 'DATEARRAY': ['array', 'DateTime'], 'DATELIST': ['list', 'DateTime'], 'DOUBLE': 'float', 'DOUBLEARRAY': ['array', 'float'], 'DOUBLELIST': ['list', 'float'], 'INT': 'int', 'INTARRAY': ['array', 'int'], 'INTLIST': ['list', 'int'], 'STRING': 'str', 'STRINGARRAY': ['array', 'str'], 'STRINGLIST': ['list', 'str']}¶