Working system
This commit is contained in:
@@ -5,6 +5,8 @@ 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![]);
|
||||
|
||||
Reference in New Issue
Block a user