Added basic compiler.

The compiler can be used to translate the syntax tree into linear
instructions. This is just a rough draft, I will need to clean this up
quite a bit.