Skip to content

NicA Systems Programming Language

Mathematical rigor meets practical engineering. Explicit memory, powerful patterns, zero compromise.

Quick Example

nic
enum Option[T] {
    Some(T),
    None
}

fn find(items: []i32, target: i32) -> Option[i32] {
    for let i = 0; i < items.len; i = i + 1 {
        if items[i] == target {
            return Some(i);
        }
    }
    return None;
}

fn main() -> unit {
    let numbers: [5]i32 = [10, 20, 30, 40, 50];
    
    match find(numbers, 30) {
        Some(idx) -> println("Found at index"),
        None -> println("Not found")
    };
    
    return;
}

Installation

bash
git clone https://github.com/nicclang/nicc.git
cd nicc
cabal build

Then compile and run your first program:

bash
cabal run nicc -- --compile hello.nic
./hello

Released under the MIT License.