Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 1 KB

README.md

File metadata and controls

39 lines (26 loc) · 1 KB

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

  • libc
  • zig 0.13
  • clang (optional)