Croissant Runtime
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crsn/crsn/src/asm/instr/mod.rs

24 lines
376 B

4 years ago
pub use cond::Cond;
pub use flatten::Flatten;
4 years ago
pub use op::Op;
use crate::asm::data::literal::RoutineName;
pub mod op;
pub mod cond;
4 years ago
mod flatten;
4 years ago
/// A higher-level instruction
#[derive(Debug)]
4 years ago
pub struct Instr {
4 years ago
pub op: Op,
4 years ago
pub branches: Option<Vec<(Cond, Vec<Instr>)>>,
}
/// A routine
pub struct Routine {
pub name: RoutineName,
pub body: Vec<Instr>,
}