aboutsummaryrefslogtreecommitdiffstats
path: root/tests/loops.bad
diff options
context:
space:
mode:
Diffstat (limited to 'tests/loops.bad')
-rw-r--r--tests/loops.bad18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/loops.bad b/tests/loops.bad
index 5221844..45c9712 100644
--- a/tests/loops.bad
+++ b/tests/loops.bad
@@ -1,18 +1,24 @@
1; The most basic loop is the while loop. 1; The most basic loop is the while loop.
2while abc = "heelo" 2while (abc) "heelo"
3 3
4while 1 + 2 == 3 = { 4while (1 + 2 == 3) {
5 "hello" 5 "hello"
6} 6}
7 7
8while symbol = { 8while (symbol) {
9 "hello" 9 "hello"
10} 10}
11 11
12
13; We could use some sugar for this. 12; We could use some sugar for this.
14let i = 0 13let i = 0
15while i < 10 = { 14while (i < 10) {
16 "hello" 15 "hello"
17 set i = i + 1 16 ; --i
18} 17}
18; TODO: add post/pre increment tokens
19; TODO: add functions
20; TODO: add function calls
21
22; for let i = 1, 1 < 10, i++ {
23
24; }