lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello all,

I've written a decompiler for Lua 5.1. It runs on chunks that have been compiled by luac with debugging information and attempts to print out a valid Lua program that would be compiled into equivalent bytecode.

The decompiler is probably not perfect. Things that are likely to confuse it are complicated nested control structures (especially with break statements) and complicated expressions with logical or comparison operators.

http://sourceforge.net/projects/unluac/

I hope someone else will find it useful.

--tehtmi

P.S. Thank you to Kein-Hong Man, for writing Chunkspy and documentation of the Lua VM.