Bare-bones Lua deserializer.
This will deserialize a slightly modified Lua 5.1.5 bytecode format.
- Instruction operation code is a byte instead of 6 bits
- Instruction argument B is a byte instead of 9 bits
- Instruction argument C is a byte instead of 9 bits
- Instruction argument Bx is 2 bytes instead of 18 bits
The format is modified for simplicity.
nom
, for example, will consume a whole byte instead of 6 bits when parsing an instruction's operation code, thus making it more problematic to parse.