Transformation exercises - Exercise 1
Posted by Jesús Fri, 05 Oct 2007 15:38:00 GMT
This post opens a series of transformation exercises intended to learn to write model transformations in the RubyTL transformation language. The exercises will have an incremental difficulty, and each one will try to teach some features of RubyTL or something about model transformations in general.I will try to publish an exercise each two or three weeks, and I will set a deadline to solve it (usually two weeks). After the deadline, I will publish "my solution" here, so that they can serve as documented model transformation examples.
Of course, the exercises can be solved in other transformation languages, and I will be glad to compare the solutions in several languages.
First exercise: parsing trees
In this exercise a model representing a generic concrete syntax tree is transformed into an abstract syntax tree of a simple language to define data structures.
You will learn to create simple transformation rules, how the binding mechanism works, and how to query the source model.
Your are provided with the problem statement, as well as a project ready to be imported into AGE.
Resources to address the exercise. *The project only works with the last version of RubyTL. So, please, refer to the quick start guide to know how to install the last version.
The deadline for this exercise is October 25. I hope you enjoy solving it.
