13 releases (4 breaking)

0.5.2 Oct 14, 2023
0.4.2 Oct 4, 2023
0.4.1 Jul 15, 2023
0.2.5 Mar 30, 2023

#528 in WebAssembly

Download history 13/week @ 2023-10-19 33/week @ 2023-10-26 5/week @ 2023-11-02 2/week @ 2023-11-09 28/week @ 2023-11-16 28/week @ 2023-11-23 67/week @ 2023-11-30 2/week @ 2023-12-07 27/week @ 2023-12-14 42/week @ 2023-12-21 16/week @ 2024-01-04 6/week @ 2024-01-11 28/week @ 2024-01-25 29/week @ 2024-02-01

64 downloads per month

MIT license

59KB
1.5K SLoC

crates.io docs.rs

luac-parser (中文)

lua字节码解析器, 目前支持 lua51, lua52, lua53, lua54, luajit, luau

这是目前效果最好的lua反编译器 metaworm's luadec 的一部分

可以基于此代码定制你所需的lua字节码解析器,编译成WASM,让metaworm's luadec加载使用,来反编译非官方的lua字节码

得益于nom库的灵活性,编写定制的解析器是很简单的一件事情,可以看这篇文章了解如何编写

luac-parser (in English)

lua bytecode parser, currently support lua51, lua52, lua53, lua54, luajit, luau

This is part of metaworm's luadec, which is the best lua decompiler at present

You can write your custom luac parser based on this code, which can be able to compiling to WASM and loaded by metaworm's luadec, to decompile the unofficial lua bytecode

Thanks to the flexibility of nom, it is very easy to write your own parser in rust, read this article to learn how to write a luac parser

Dependencies

~4MB
~88K SLoC