mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
wip
This commit is contained in:
parent
d6479ca193
commit
37c6401a5e
@ -3,4 +3,5 @@ members = [
|
||||
"trunk_lexer",
|
||||
"trunk_parser",
|
||||
"trunk_compiler",
|
||||
"trunk_bytecode",
|
||||
]
|
8
trunk_bytecode/Cargo.toml
Normal file
8
trunk_bytecode/Cargo.toml
Normal 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
11
trunk_bytecode/src/lib.rs
Normal file
@ -0,0 +1,11 @@
|
||||
pub type Register = usize;
|
||||
|
||||
pub struct Instruction {
|
||||
pub dest: Register,
|
||||
pub code: Code,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum Code {
|
||||
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
pub fn compile() {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user