aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/sloth_vm/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs
index 9240577..68f0406 100644
--- a/crates/sloth_vm/src/lib.rs
+++ b/crates/sloth_vm/src/lib.rs
@@ -27,6 +27,16 @@ impl VM {
}
}
+ fn execute(&mut self) {
+ loop {
+ self.execute_once();
+ }
+ }
+
+ fn execute_once(&mut self) {
+ //
+ }
+
fn run(&mut self, chunk: &Chunk) {
let mut pointer = 0;