Generate Lua code by line.