The damson compiler, emulator, debugger and code generator