Towards a Text Generation Template Language for Modelica
The uses; needs; and requirements of a text generation template language for Modelica are discussed. A template language may allow more concise and readable programming of the generation of textual models; program code; or documents; from a structured model representation such as abstract syntax trees (AST). Applications can be found in generating simulation code in other programming languages from models; generation of specialized models for various applications; generation of documentation; web pages; etc. We present several template language designs and some usage examples; both C code generation and Modelica model generation. Implementation is done in the OpenModelica environment. Two designs are currently operational.
Related projects
No projects linked.
Attachments
No attachments yet.