Code generators are text template based and can be built for any target architecture or framework, providing a dynamic bridge between analysis and design.
A text template specifies the information to generate in a given file as well as the name of the file. A text template can have parameters that are used to derive the dynamic contents based on the specific model under consideration.
Text templates use the Text Generation Language (TGL) as their syntax, with the Model Query Language (MQL) used to access the dynamic information from the parameters. The Text Generation Language is a template-based language used to specify the layout and contents of source code or other text documents. Using its WYSIWYG layout capabilities, any text document is easily generated.
MDWorkbench supports iterative cycles by preserving user-defined code fragments when regenerating files.
TGL (Text Generation Language)