This commit is contained in:
Ryan Chandler 2022-07-19 11:30:23 +01:00
parent d6479ca193
commit 37c6401a5e
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA
4 changed files with 23 additions and 0 deletions

View File

@ -3,4 +3,5 @@ members = [
"trunk_lexer",
"trunk_parser",
"trunk_compiler",
"trunk_bytecode",
]

View File

@ -0,0 +1,8 @@
[package]
name = "trunk_bytecode"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

11
trunk_bytecode/src/lib.rs Normal file
View File

@ -0,0 +1,11 @@
pub type Register = usize;
pub struct Instruction {
pub dest: Register,
pub code: Code,
}
#[derive(Debug, PartialEq)]
pub enum Code {
}

View File

@ -0,0 +1,3 @@
pub fn compile() {
}