alpaca_ir 0.0.1

AlpacaIR is a intermediate represenation meant to make making compilers easier.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[repr(u32)]
#[derive(Debug)]
pub enum ErrorSection {
    Pipeline = 0,
}

#[macro_export]
macro_rules! exit {
    ($section:expr, $code:expr) => {
        use std::process::exit;
        log::error!("exited with error code: {}:{}", $section as u32, $code);
        exit($code as i32);
    };
}