14 lines
281 B
Rust
14 lines
281 B
Rust
use std::path::Path;
|
|
|
|
use archforge::runtime::Runtime;
|
|
|
|
fn main() {
|
|
let mut runtime = Runtime::new();
|
|
|
|
runtime.register_opcode("print", |params| println!("{params:?}"));
|
|
|
|
runtime.execute_script(Path::new("example.forge"));
|
|
|
|
runtime.call_function("main", vec![]);
|
|
}
|