|
|
Code Generation with M2T Xpand
This session is an introduction to writing robust and scalable code generators using M2T's Xpand language. We show the basics of the language as well as several best practices and advanced features. These include the use of extension functions to factor out complex expression that are reused at several locatios in the templates. We also show how to use template aspects to build variants of existing templates without invasively changing the original templates definitions. This allows the adaptation of existing generators (such as the one in GMF) to your own needs. Finally, we will look at the tool support that is available for integrating generated and manually written code. The session shows how to generate code from EMF and UML2 models, and explains how to integrate code generation into a modeling workflow defined with the Eclipse Modeling Workflow Engine.
|