60 likes | 126 Views
DSLs for Model Transformation. public class Bill { private Set<Call> calls; private State state; public void run() { yyObject.simpleMessage(); state = T1.getState(); // ... } //... }. public class Bill { private Set<Call> calls; private State state; public void run() {
E N D
publicclassBill { privateSet<Call> calls; privateState state; publicvoidrun() { yyObject.simpleMessage(); state = T1.getState(); // ... } //... }
publicclassBill { privateSet<Call> calls; privateState state; publicvoidrun() { yyObject.simpleMessage(); state = T1.getState(); // ... } //... }
Project Challenge • Define a DSL for model analysis and transformation • Sort our the mess of different model views • Find the right level of abstraction in DSL • Implement DSL in Groovy • Define good code generation rules • Build working examples