Complete compiler v1

Probably very buggy, and of course the VM isn't fully finished to be
able to actually run the generated code.