Child pages
  • Model Transformation with Xtend

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleWarning

This tutorial is not finished. Don't start working on it yet!

This installment of our little series of tutorials will be all about Xtend, a programming language that looks very similar to Java, but which adds some very convenient features. Xtend code compiles to Java and and was developed using Xtext. In fact, once you gain experience working with Xtend you will probably appreciate the power of Xtext even more.

In this tutorial, we will focus on two particular areas where Xtend excels:

  • Model transformation. You will be using Xtend to transform a given Turing Machine developed for one model of computation into a new Turing Machine for another model of computation. More specifically, we will be removing NONE as a possible head direction, thereby requiring you to add new states and transitions in the transformed Turing Machine.
  • Code generation. You will be using Xtend to generate code for a given Turing Machine model in an arbitrary programming language (except perhaps Brainfuck or Whitespace). The generated program will implement and simulate the Turing Machine without relying on its model.

As in the previous tutorial, we refer you to the Xtend documentation instead of explaining everything in this tutorial.

Exciting stuff, so let's begin.

Table of Contents

Model Transformation

TODO: Write this section.

Code Generation

TODO: Write this section.