slige/examples/example_2.slg
2025-01-17 11:50:14 +01:00

25 lines
299 B
Plaintext

fn add(a: int, b: int) -> int {
a + b
}
fn main() -> int {
let result = 0;
let a = 0;
let b = a;
let c = b;
let d = c;
let i = c;
loop {
if i >= 10 {
break;
}
result = add(result, 5);
i = i + 1;
}
result
}