reid-llvm/examples/arithmetic.rs
2024-08-22 00:34:58 +03:00

12 lines
236 B
Rust

use reid::compile;
pub static ARITHMETIC: &str = include_str!("./reid/arithmetic.reid");
fn main() {
let text = match compile(ARITHMETIC) {
Ok(t) => t,
Err(e) => panic!("{}", e),
};
println!("{}", text);
}