mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-14 20:00:04 +00:00
15 lines
289 B
Python
Executable File
15 lines
289 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
import lundump
|
|
import lparser
|
|
|
|
lc = lundump.LuaUndump()
|
|
print(sys.argv[1])
|
|
chunk = lc.loadFile(sys.argv[1])
|
|
|
|
lc.print_dissassembly()
|
|
|
|
lp = lparser.LuaDecomp(chunk)
|
|
|
|
print("\n==== [[" + str(chunk.name) + "'s pseudo-code]] ====\n")
|
|
print(lp.getPseudoCode()) |