slige/example.slg

32 lines
315 B
Plaintext
Raw Normal View History

2024-11-01 10:48:21 +00:00
fn add(a: int, b: int) -> int {
a + b
}
add(2,3); // -> 5
let a: string = "Hello";
let b = "world";
println(a + " " + b + "!"); // -> "Hello world!"
if a == b {
println("whaaaat");
}
else {
println(":o");
}
2024-11-15 14:20:49 +00:00
oopjoipjioj
2024-11-01 10:48:21 +00:00
loop {
let i = 0;
if i >= 10 {
break;
}
i += 1;
}