diff options
| author | Cody <cody@codyq.dev> | 2023-04-10 18:25:59 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-10 18:25:59 -0500 |
| commit | c458e9f46afcd04445dcb35d1fd9e2a85a451937 (patch) | |
| tree | f2cc0e4acdaa06c2b3b727d0b7b464e19322a022 /crates/sloth_vm/src | |
| parent | 954c124c1f8513031b64edc2914a09da81e89fde (diff) | |
| download | sloth-c458e9f46afcd04445dcb35d1fd9e2a85a451937.tar.gz | |
Some basic shit
Diffstat (limited to 'crates/sloth_vm/src')
| -rw-r--r-- | crates/sloth_vm/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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<u8>, + constants: Vec<u64>, +} + pub struct VM { stack: [u8; STACK_SIZE], constants: Vec<u8>, } +impl VM { + // +} + #[cfg(test)] mod tests { #[test] |
