5.1.1.2.1.1.1.2. pycropml.transpiler.generators.csharpGenerator module¶
-
class
pycropml.transpiler.generators.csharpGenerator.
CsharpCompo
(tree=None, model=None, name=None)[source]¶ Bases:
pycropml.transpiler.generators.csharpGenerator.CsharpTrans
,pycropml.transpiler.generators.csharpGenerator.CsharpGenerator
This class used to generates states, rates and auxiliary classes for C# languages.
-
class
pycropml.transpiler.generators.csharpGenerator.
CsharpGenerator
(tree, model=None, name=None)[source]¶ Bases:
pycropml.transpiler.codeGenerator.CodeGenerator
,pycropml.transpiler.rules.csharpRules.CsharpRules
This 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:
pycropml.transpiler.codeGenerator.CodeGenerator
,pycropml.transpiler.rules.csharpRules.CsharpRules
This class used to generates states, rates and auxiliary 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']}¶
-