reid-llvm/examples/arithmetic.rs

12 lines
236 B
Rust
Raw Permalink Normal View History

2023-08-02 18:17:57 +02:00
use reid::compile;
2024-08-21 23:34:58 +02:00
pub static ARITHMETIC: &str = include_str!("./reid/arithmetic.reid");
2023-08-02 18:17:57 +02:00
fn main() {
2024-08-21 23:34:58 +02:00
let text = match compile(ARITHMETIC) {
2023-08-02 18:17:57 +02:00
Ok(t) => t,
Err(e) => panic!("{}", e),
};
println!("{}", text);
}