reid-llvm/examples/reid/easiest.reid

22 lines
303 B
Plaintext

// Hello, comment here!
import std::print;
fn main() {
let hello = 32 + {
2 + 3
};
let beep = hello + fibonacci();
return beep;
}
// Fibonacci
fn fibonacci(value: i32) -> i32 {
if 1 < 3 {
1
} else {
fibonacci(value - 1) + fibonacci(value - 2)
}
}