Skip to content

rchaser53/rust-monkey-ir

Repository files navigation

Failed to create this compiler. next.

rust-monkey-ir

this is a toy compiler emits LLVM IR

how to play

  1. 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
  1. executes LLVM IR file by lli.
lli [LLVM IR file]

# ex. lli output.ll

※ perhaps you need to install LLVM to use lli.

demo

you can enjoy Fizz Buzz in rust-monkye-ir. like below.

About

A toy compiler emits LLVM IR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published