aboutsummaryrefslogtreecommitdiffstats
path: root/tests/loops.bad
blob: 45c9712e1520cb2103069dcec691817f851d4e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; The most basic loop is the while loop.
while (abc) "heelo"

while (1 + 2 == 3) {
    "hello"
}

while (symbol) {
    "hello"
}

; We could use some sugar for this.
let i = 0
while (i < 10) {
    "hello"
    ; --i
}
; TODO: add post/pre increment tokens
; TODO: add functions
; TODO: add function calls

; for let i = 1, 1 < 10, i++ {

; }