repo.or.cz
/
voodoo-lang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Made parser able to report multiple errors per call, using new Voodoo::Parser::Multip...
[voodoo-lang.git]
/
test
/
goto.voo
blob
3c9cc853dc76322d104bc53d79b059da978f9907
1
#### Test program for goto
2
3
section data
4
format:
5
string "%d\x0a\x00"
6
7
section functions
8
import printf
9
export main
10
11
main:
12
function argc argv
13
let n 10
14
lbl:
15
call printf format n
16
set n sub n 1
17
ifgt n 0
18
goto lbl
19
end if
20
return 0
21
end function