ampc 0.5.0-alpha

Compiler for the Amp language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const GetStrSig = func(): &u8;
const GetStr: GetStrSig = func(): &u8 {
    return "Hello, indirect calls!";
};

const GetGetStr = func(): GetStrSig {
    return GetStr;
};

const Printf = func printf(&u8): i32;

const Main = func main(): i32 {
    Printf(GetGetStr()());
    return 0;
};