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
17
18
#[std]

fn test(n: num) -> num {
    if n < 0 {
        return 1;
    } else if n < 10 {
        return 2;
    } else {
        return 3;
    }
}


fn main() {
    putnumln(test(-1)); // 1
    putnumln(test(5));  // 2
    putnumln(test(10)); // 3
}