Working ish runtime

This commit is contained in:
2026-03-13 23:44:58 +01:00
parent 2cc6ff7e96
commit 0ad745c6d5
3 changed files with 82 additions and 17 deletions
+4 -10
View File
@@ -1,13 +1,7 @@
use archforge::parser::parse_program;
use archforge::runtime::Runtime;
fn main() {
let p = parse_program("increment(x) {
ADD $counter, %x, $counter
}
main() {
increment(5)
}").unwrap();
let mut runtime = Runtime::new();
println!("{p:?}");
}
runtime.call_function("main", vec![]);
}