Started work on code generation from new ast.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>