oakc 0.6.1

A portable programming language with a compact backend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[std]

fn not(x: bool) -> num {
    if x {
        putstrln("x is true");
        return 1
    } else {
        putstrln("x is false");
        return 0
    }
}

fn main() {
    putnumln(not(true));
    putnumln(not(false));
}