aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sloth
blob: 4b9994342367ca9161b6bf5468e87764dc4f5a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
foreign fn addz(lhs: Int, rhs: Int) Int;

fn haiiii() Void {}

fn hehehaha() Int {
    var x: Int = 0;
    while x < 10 {
        x = x + 1;
    }
    return x;
}