mirror of
https://github.com/CPunch/LuaPytecode.git
synced 2024-12-22 06:10:03 +00:00
Added some minor context info
This commit is contained in:
parent
fda8ec118c
commit
efb4ef5035
12
luac.py
12
luac.py
@ -1,8 +1,18 @@
|
|||||||
|
'''
|
||||||
|
Luac.py
|
||||||
|
|
||||||
|
A Lua5.1 cross-platform bytecode deserializer. This module pulls int and size_t sizes from the
|
||||||
|
chunk header, meaning it should be able to deserialize lua bytecode dumps from most platforms,
|
||||||
|
regardless of the host machine.
|
||||||
|
|
||||||
|
For details on the Lua5.1 bytecode format, I read [this PDF](https://archive.org/download/a-no-frills-intro-to-lua-5.1-vm-instructions/a-no-frills-intro-to-lua-5.1-vm-instructions_archive.torrent)
|
||||||
|
as well as read the lundump.c source file from the Lua5.1 source.
|
||||||
|
'''
|
||||||
|
|
||||||
import struct
|
import struct
|
||||||
import array
|
import array
|
||||||
from enum import IntEnum, Enum, auto
|
from enum import IntEnum, Enum, auto
|
||||||
|
|
||||||
|
|
||||||
class InstructionType(Enum):
|
class InstructionType(Enum):
|
||||||
ABC = auto(),
|
ABC = auto(),
|
||||||
ABx = auto(),
|
ABx = auto(),
|
||||||
|
Loading…
Reference in New Issue
Block a user