From c458e9f46afcd04445dcb35d1fd9e2a85a451937 Mon Sep 17 00:00:00 2001 From: Cody Date: Mon, 10 Apr 2023 18:25:59 -0500 Subject: Some basic shit --- crates/sloth_vm/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/sloth_vm/src') diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs index 2210a57..1dfb191 100644 --- a/crates/sloth_vm/src/lib.rs +++ b/crates/sloth_vm/src/lib.rs @@ -9,11 +9,20 @@ const STACK_SIZE: usize = 1024; +pub struct Chunk { + code: Vec, + constants: Vec, +} + pub struct VM { stack: [u8; STACK_SIZE], constants: Vec, } +impl VM { + // +} + #[cfg(test)] mod tests { #[test] -- cgit v1.2.3