luac-parser-rs icon indicating copy to clipboard operation
luac-parser-rs copied to clipboard

lua bytecode parser written in Rust using nom, part of metaworm's lua decompiler, support lua51/lua52/lua53/lua54/luajit/luau https://luadec.metaworm.site/

Results 44 luac-parser-rs issues
Sort by recently updated
recently updated
newest added

When given the following script: ``` local fenv = getfenv and getfenv() or _ENV print(fenv._VERSION) ``` Metaworm's luadec fails to identify the and-or construct, and instead produces this code: ```...

good first issue
wontfix

网页内如何批量下载?

When given the following script: ``` local tbl = { {}, [100000] = {} } ``` Metaworm's luadec either: 1. generates a file with over 100 thousand lines (luajit): ```...

bug

RT,因为遇到比较多的luac都是魔改过opcode的

enhancement

When given the following script: ``` local saved_value local new_value = somefunc() local to_ret = new_value - saved_value saved_value = new_value return to_ret ``` Metaworm's luadec incorrectly inlines the SUB...

bug

When given the following script: ``` local t = cond or {255, 255, 255, 255} print(t[1]) ``` Metaworm's luadec produces the following output: ``` local r0_0 = cond if not...

-- error: decompile function#0 panic: blk#0 op: Le if must have two branch

When given the following script: ``` if RUN_CHECK then if VIOLATED then while true do end end print("passed violated check") if VIOLATED2 then while true do end end print("passed violated2...

large functions in 5.1 luas give a decompile error and fail to decompile. Example: function updateGame(r0_195, r1_195) -- line: [6556, 7444] id: 195 -- error: decompile function#195: generate_assignment(0) -- --...

`a = a or b` turns into `a = a and b`