Abstract
The uses, needs, and requirements of a text generation template language for Modelica are discussed. A tem-plate language may allow more concise and readable programming of the generation of textual models, pro-gram code, or documents, from a structured model rep-resentation such as abstract syntax trees (AST). Appli-cations can be found in generating simulation code in other programming languages from models, generation of specialized models for various applications, genera-tion of documentation, web pages, etc. We present sev-eral template language designs and some usage exam-ples, both C code generation and Modelica model gen-eration. Implementation is done in the OpenModelica environment. Two designs are currently operational.
Cite
CITATION STYLE
Fritzson, P., Privitzer, P., Sjölund, M., & Pop, A. (2009). Towards a Text Generation Template Language for Modelica. In Proceedings of the 7 International Modelica Conference Como, Italy (Vol. 43, pp. 193–207). Linköping University Electronic Press. https://doi.org/10.3384/ecp09430124
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.