Incomplete Lua VM written in Rust
https://github.com/chikaku/nad.git
Incomplete Lua VM only bytecode is supported for now
cargo run -- -dump -debug /path/to/bytecode
# or
cargo install nad
nad -debug -dump /path/to/bytecode
cargo run -- -debug /path/to/bytecode
# or
cargo install nad
nad -debug /path/to/bytecode
nad libraryuse nad::State;
use nad::Reader;
fn main() {
let path = "/path/to/bytecode";
// read prototype
let prototype = Reader::from_file(path).prototype();
// execute main function
State::from_file(path).call(0, 0);
}