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

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

let a = true
while a {
    "hello"
}

; We could use some sugar for this.
let i = 0
while i < 10 {
    "hello"
    ; --i
}

; TODO: add post/pre increment tokens