Code for a Niter program that prints "Hello, World!" and the number 42.
Back to Projects

The Niter Programming Language and Compiler

January 2024 - July 2024

Tags

    C++LLVMConsoleFeatured

About

A programming language designed to be Turing-complete, statically-typed, and fast. The language is compiled to LLVM Intermediate Representation, allowing for powerful optimizations and cross-platform compatibility. The language features a C-like syntax with support for functions, variables, loops, conditionals, and more. It also provides simple error messages for compilation errors. The compiler is written in C++ and operates in several stages: scanning, parsing, type-checking, and code generation. The language is still in development and has over 200 integration tests to ensure correctness and speed up development. It is named after the mineral form of potassium nitrate, a compound used in fertilizers and gunpowder, which reflects the language's power, versatility, lack of safety restrictions that nerf control.

External Links

Images

Code for a Niter program that prints "Hello, World!" and the number 42.Code for a Niter "Hello, World" program and its console output.Code for a Niter "FizzBuzz" program and its console output.Code for a Niter program showcasing structs.A console showing a compiler error in Niter for a duplicate symbol declaration.