Crates.io | nad |
lib.rs | nad |
version | 0.1.0 |
source | src |
created_at | 2021-03-19 13:04:16.351724 |
updated_at | 2021-03-19 13:04:16.351724 |
description | Incomplete Lua VM |
homepage | https://github.com/chikaku/nad |
repository | https://github.com/chikaku/nad |
max_upload_size | |
id | 370972 |
size | 70,145 |
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);
}