Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

amitbashan/lua-deserializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua Deserializer

Bare-bones Lua deserializer.

Bytecode Format

This will deserialize a slightly modified Lua 5.1.5 bytecode format.

Changes

  • 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

Purpose

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.

Releases

No releases published

Packages

No packages published

Languages