Commit Graph

15 Commits

Author SHA1 Message Date
CPunch a22aa808e0 lp: added support for OP_TEST 2022-08-26 01:18:24 -05:00
CPunch 3be45f156a lp: support OP_CLOSURE, boilerplate function/proto support 2022-08-17 22:14:45 -05:00
CPunch b28edcba1d lp: fix isValidLocal() not respecting capitals 2022-08-17 22:14:13 -05:00
CPunch bc4e762e26 lp: bug fix (forgot to transfer registers) 2022-08-16 00:26:50 -05:00
CPunch 19bed999ee lp: added __parseNewTable(), better table pseudo-code 2022-08-16 00:12:26 -05:00
CPunch a248cc4807 lp: added NEWTABLE && SETLIST
- tables can now be (mostly) decompiled
- changed 'decompiled source' to 'pseudo-code' since the output doesn't typically match the compiled script source.
- misc. refactoring
2022-08-15 23:30:32 -05:00
CPunch 9da0d0ffbd lp: support FORPREP && FORLOOP 2022-08-14 01:36:05 -05:00
CPunch 0d947f4f3d Added 'repeat .. until' support
- lines are now tracked by start & end PC
- new config option: annotatedLines. if true line annotations show start & end PC will be emitted
- lundump.py now shows locals for each proto
2022-08-12 17:08:31 -05:00
CPunch 368ff62538 'not' not '!' 2022-08-12 00:10:47 -05:00
CPunch a6623c8953 lparser.py: if local name is invalid, resort to fallback 2022-08-12 00:04:11 -05:00
CPunch 0f72e71a59 lparser.py: proper support for locals 2022-08-11 23:58:21 -05:00
CPunch b8bf02f7d0 lparser.py: minor refactoring, cleanup 2022-08-11 23:10:36 -05:00
CPunch 95ca3bb26b lparser.py: added support for while loops 2022-08-11 17:26:48 -05:00
CPunch 055af56e27 lparser.py: don't read RK values here, use lundump.py to read them 2022-08-11 16:45:05 -05:00
CPunch 0dbdfc49c6 Inital commit
- Extremely basic decompiler implemented in lparser.py
- lundump.py ported from [this repository](https://github.com/CPunch/LuaPytecode)
2022-08-11 15:38:31 -05:00