aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple.tdy
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-01-12 18:49:11 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-01-12 18:49:11 +0100
commit32fa47b52b03f4ae84bc773bad785cf77334ae78 (patch)
tree855cd35f6d6b38e8c955edd0f3385e0b8f2988ac /tests/simple.tdy
parentf957f0ba7bce1c1fb18df37cc11bb3906b96735f (diff)
downloadsylt-32fa47b52b03f4ae84bc773bad785cf77334ae78.tar.gz
WIP for-loop
Diffstat (limited to 'tests/simple.tdy')
-rw-r--r--tests/simple.tdy30
1 files changed, 23 insertions, 7 deletions
diff --git a/tests/simple.tdy b/tests/simple.tdy
index 3fe05a4..d07aad7 100644
--- a/tests/simple.tdy
+++ b/tests/simple.tdy
@@ -13,12 +13,28 @@
// print d
// print c
-a int := 2
-if a == 0 {
- print "123"
-} else if a == 1 {
- print "BCD"
-} else {
- print "ABC"
+
+for a := 0, a >= 0, a = a - 1 {
+ if a == 2 {
+ continue
+ }
+ print a
+}
+
+for a := 0, a >= 0, a = a - 1 {
+ if a == 2 {
+ continue
+ }
+ print a
+}
+
+a = 0
+
+fiv a in something {
}
+
+something.each((x) -> {
+
+}
+
// 1, 2, 3, 4