MicroModelicaCCompiler
4.5.3
|
Go to the documentation of this file.
28 #include <deps/model_dependencies.hpp>
38 class CompiledPackage;
39 class CompiledFunction;
57 typedef long int grp_t;
68 static Utils _instance;
97 inline int id() {
return _ids++; };
98 Variable
variable(AST_Expression exp);
100 std::string
tabs(
int t);
106 std::string
generatePath(std::string path, std::string file_name);
void setPackagePrefix(std::string package_prefix)
IR::FunctionTable packageFunctions()
std::string languageEspecification()
bool checkCodeFiles(std::string name, std::string ext)
IR::CompiledFunctionTable compiledFunctions()
std::string baseFileName(std::string file)
ModelTable< std::string, std::string > ImportTable
std::string packageName(std::string name)
ModelTable< std::string, CompiledPackage > CompiledPackageTable
void setPackageFunctions(IR::FunctionTable package_functions)
bool searchCompiledPackage(std::string pname, CompileFlags flags)
IR::FunctionTable _package_functions
ModelTable< int, Equation > EquationTable
void setCompileFlags(CompileFlags flags)
std::string getFilePath(std::string file)
std::string trimString(std::string str)
CompileFlags compileFlags()
bool checkTypeString(std::string t)
bool checkGKLinkFunctions(std::string name)
ModelTable< std::string, std::string > SymbolTable
std::string getFileName(std::string file)
std::string _package_prefix
std::string _binop[BINOPS]
bool checkBuiltInFunctions(std::string name)
Variable variable(AST_Expression exp)
SymbolTable getValue(fstream *package, std::string token)
std::string generatePath(std::string path, std::string file_name)
bool readPackage(std::string fileName, IR::CompiledPackageTable &pt)
void addCompiledFunction(IR::CompiledFunction f)
std::string opString(BinOpType bot)
ModelTable< std::string, CompiledFunction > CompiledFunctionTable
IR::CompiledFunctionTable _compiled_functions
std::string getVarName(std::string name)
IR::Expression variableExpression(string name, Option< IR::Range > range)
std::string packagePrefix()
void addCompiledFunctions(IR::CompiledFunctionTable fs)
static Utils & instance()
std::string iteratorVar(int dim)
std::string environmentVariable(std::string ev)
ModelTable< std::string, Function > FunctionTable
std::string packagePath(std::string pname, CompileFlags flags, std::string ext=".mo")
map< std::string, int > _annotations
bool checkExperimentAnnotations(std::string *annotation)
bool checkCompiledFunctions(std::string name)
std::string _language_especification