diff --git a/example.slg b/example.slg new file mode 100644 index 0000000..4eac52e --- /dev/null +++ b/example.slg @@ -0,0 +1,30 @@ + + +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"); +} + +loop { + let i = 0; + + if i >= 10 { + break; + } + + i += 1; +} \ No newline at end of file