Skip to content

Latest commit

 

History

376 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

6 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages