minor
Rewrote the Lua code generator.