Child pages
  • Code Generation with Xtend

Versions Compared

Key

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

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

Welcome to the second tutorial about Xtend. This time, you will take imperative language models and generate code for them in your favourite programming language. While we personally recommend Java, there's nothing stopping you from generating C code, PHP code, or anything else the constructs of our simple language model can be transformed into. We would just like to ask you to refrain from generating code in any esoteric programming language... (wink)

...

Testing Your Implementation

...

titleToDo

...

To test your implementation, you can use these sample programs. Since we haven't included comments in the textual syntax (or the model, for that matter), we'll just have to hope that the programs are self-explanatory...