There are some Lua language tools at http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ In particular ctrace: A tool for tracing Lua API calls http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#ctrace lbci: A bytecode inspector library http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#lbci lstrip: A tool for compressing Lua programs http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#lstrip ltokenp: A token processor for Lua http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#ltokenp All feedback is welcome.