Dingo Dream

Influenced by the 2000s Trend of generating Java Code from UML I stumbled upon xtext by a talk at the 2007 JAX Conference. It was said we should not create graphical models like UML but text-based model with custom made DSLs (Domain Specific Language)

With xtext you would define the grammar of your language and it gerenates a parser, an abstract syntax tree and an eclipse plugin with syntax highlighting.

This approach seemed promising to me and few year later I have used xtext to create a little DSL for defining Event and Actions/Commands of a Web Frontend.

Also from the Eclipse Modeling Project I used QVT (Query View Transformation) for a model-to-model transformation to create model that was in structure similar to the code that I wanted to generate.

The generated code, I produced with Xtend which was also from the Eclipse Modeling Framework. It was ActionScript for the MVC Framework Cairngorm and it worked very well and saved my a lot of typing