mathic 0.2.0

A compiler with builtin support of symbolic operations, built with LLVM/MLIR
1
2
3
4
5
6
7
8
9
10
df factorial(n: i64) i64 {
    if n == 0 {
        return 1;
    }
    return n * factorial(n - 1);
}

df main() i64 {
    return factorial(5);
}