blob: 1dfb1918992ddbe717c128e730b48ea3a6098735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#![allow(dead_code)]
#![warn(
clippy::wildcard_imports,
clippy::string_add,
clippy::string_add_assign,
clippy::manual_ok_or,
unused_lifetimes
)]
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]
fn add_program() {}
}
|