r/lua • u/DraftUnhappy8333 • Mar 17 '26
lua5.1 decompiler
hey, just posted a basic lua5.1 decompiler its pretty bad but good enough for a base it uses loretta for code generation
5
Upvotes
r/lua • u/DraftUnhappy8333 • Mar 17 '26
hey, just posted a basic lua5.1 decompiler its pretty bad but good enough for a base it uses loretta for code generation
View all comments
Show parent comment
4
u/weregod Mar 17 '26
luac -l will parse and dissassemble Lua bytecode. It is not ready to use decompiler but is good place to start.
Even if you don't want to use C code you can port existing bytecode parser and focus on decompiling.