Here's a concise demo (although you should read the original paper and the documentation to really grasp this concept): https://youtu.be/pVIywLXDuRo
Papers: https://confluence.jetbrains.com/display/MPS/MPS+publication...