kodesoul / nai-lang

Toy programming language.
MIT License
3 stars 0 forks source link

nai-lang

Toy programming language.

NOTE !!!

I'm archiving this project since I lost interest.

However I recommend looking at the examples folder with c files and the handwritten llvm ir text file translations.

LLVM gets really annoying once things get complex so I also recommend checking out qbe for easier compiler backends to machine code.

Some of the resources I recommend are:

Description

Weekend code jam for Rust Nairobi.

Compilation

  1. Compile a file.nl file to file.ll llvm ir text file.
  2. Call zig cc file.ll -o file or clang file.ll to produce machine code.

Dependencies