Home

Awesome

minicom

Build Status

minicom is a compiler of mini toy language written in Rust using LLVM.

Examples

Try $ cargo run -- examples/fib.mini. It will emit a binary executable, fib.

def fib(n: Int): Int = {
  if n <= 1 {
    1
  } else {
    fib(n-1) + fib(n-2)
  }
}

def main() = {
  let n = ref(0)
  while @n < 38 {
    print(fib(@n))
    n <- @n + 1
  }
}

Features