Tutorial : Building a DSL using Kermeta

Logo sample

Haja Rambelontsalama

Build date: 3-November-2010

Revision: $Date:: 2010-03-05 11:10:01#$

Abstract

This tutorial is a step-by-step user-guide to build integrated tools with the Kermeta language. The illustrated example here is building the Logo DSL with Kermeta.


Table of Contents

Preface
1. Introduction
2. Installation
2.1. Prerequisites
2.2. Install logo projects
3. Define the metamodel
3.1. From Ecore to genenerated code
3.2. Metamodel Ecore with Kermeta
4. Editor
4.1. Dynamic instance
4.2. Tree view editor
4.3. Textual editor
4.4. GMF editor
5. Model manipulation in Kermeta
5.1. Package registry
5.2. Serialization
6. Contract
6.1. Static semantics
6.2. Implementation in Kermeta
7. Behaviour
7.1. Preparation of the environment
7.2. Dynamic semantic
7.3. Virtual machine
7.4. Operational semantics extra
7.4.1. Call to java.lang.Math
7.4.2. Implementing a graphical output
8. Model transformation - Compilation
9. UI improvements
9.1. GUI deployment setup
10. Using the deployed DSL environment
11. Conclusion

List of Figures

2.1. Installation of the Kermeta Tutorial projects
3.1. Project structure after generating the model, edit and editor code
3.2. The logo metamodel
4.1. Creating a dynamic instance (illustration purpose)
4.2. dots.xmi illustration
6.1. Kermeta application checkModels output
7.1. org.kermeta.kmlogo.logoasm.srcKermeta project structure
7.2. Outline view
7.3. Call to java Math results
7.4. VM testing output
11.1. Logo solution project structure