reid-llvm/examples/reid/easy.reid
2024-08-21 23:31:31 +03:00

10 lines
232 B
Plaintext

// Arithmetic, function calls and imports!
fn main() {
let test = 9;
let simpleAdd = 2 + 2;
let simpleMult = 7 * 2; // 14
let arithmetic = 3 + 2 * 5 + 1 * 2; // 15
return arithmetic + simpleMult * arithmetic;
}