deimos-lang/dmc-lib/src/asm/asm_function.rs
2026-02-27 21:33:28 -06:00

17 lines
291 B
Rust

use crate::asm::asm_block::AsmBlock;
#[derive(Debug)]
pub struct AsmFunction {
name: String,
blocks: Vec<AsmBlock>,
}
impl AsmFunction {
pub fn new(name: &str, blocks: Vec<AsmBlock>) -> Self {
Self {
name: name.into(),
blocks,
}
}
}