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/csn_asm/src/instr/mod.rs

27 lines
423 B

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