This demo shows an implementation of the example that you can see in the introduction chapter of DSL book by Martin Fowler.

You can also download dslbook_example.zip. It contains all artifacts used in this demo (MPS files, Java files, IDEA project file, etc). It won't compile as is, since you need to have MPS classes (and junit4.jar).

This example (MPS part and Java classes) is based on the example that Martin Fowler did when he implemented his example from the introduction using MPS. We added a test-related stuff (you can see it at the end of the demo).