aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sloth
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-15 13:50:02 -0500
committerCody <cody@codyq.dev>2023-06-15 13:50:02 -0500
commit932673c0026c33c41e969e109a0ca7a1fd6abba8 (patch)
tree35b3bbf2c9aec87106e5a665b54e027e086b88d2 /examples/hello.sloth
parent9c6ff27ba4ce313887251f59f45a220556e94398 (diff)
downloadsloth-932673c0026c33c41e969e109a0ca7a1fd6abba8.tar.gz
pog pog pogpogpogpogpogpogpogpog pog pog pogpogpogpogpogpog
Diffstat (limited to 'examples/hello.sloth')
-rw-r--r--examples/hello.sloth11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/hello.sloth b/examples/hello.sloth
index 8201dae..0da2fd0 100644
--- a/examples/hello.sloth
+++ b/examples/hello.sloth
@@ -1,6 +1,7 @@
-print("Hello World!");
-
-# Comment
-for greeting in ["Hello", "Hola", "你好"] {
- print(greeting + " World!");
+fn main() {
+ var i: Int = 10;
+ while i > 0 {
+ i = i - 1;
+ }
}
+