ferib / LuaToolkit

Lua Encode/Decoder/Disassembler/Decompiler in C#
https://ferib.dev/blog.php?l=post/Lua_Devirtualization_Part_2_Decompiling_Lua
MIT License
86 stars 35 forks source link

missing `end` in decompilation #24

Open ferib opened 1 year ago

ferib commented 1 year ago

When doing something like below it won't properly close the if chain.

if A then
   return 0;
elseif B then
   return 1;
elseif C then
    return 2;
end