A intermediate code generator for Lua in C++