Failed to create this compiler. next.
this is a toy compiler emits LLVM IR
- compiles rust-monkey-ir file(xxx.mr) and emits LLVM IR(yyy.ll).
cargo run [input] [output]
# default input is input.mr
# default output is output.ll
- executes LLVM IR file by
lli
.
lli [LLVM IR file]
# ex. lli output.ll
you can enjoy Fizz Buzz in rust-monkye-ir. like below.