reid-llvm/examples/easy.rs

12 lines
218 B
Rust
Raw Normal View History

2023-08-02 18:17:57 +02:00
use reid::compile;
2024-07-17 17:39:31 +02:00
pub static EASY: &str = include_str!("./reid/easy.reid");
2023-08-02 18:17:57 +02:00
fn main() {
2024-07-17 17:39:31 +02:00
let text = match compile(EASY) {
2023-08-02 18:17:57 +02:00
Ok(t) => t,
Err(e) => panic!("{}", e),
};
println!("{}", text);
}