2018-08-16 21:10:28 +00:00
|
|
|
%output prg
|
|
|
|
%launcher basic
|
2018-09-15 22:59:12 +00:00
|
|
|
%option enable_floats
|
2018-08-16 21:10:28 +00:00
|
|
|
|
2018-09-15 22:59:12 +00:00
|
|
|
~ main {
|
2018-09-02 16:32:48 +00:00
|
|
|
|
2018-09-15 22:59:12 +00:00
|
|
|
sub start() -> () {
|
2018-09-11 22:51:48 +00:00
|
|
|
|
2018-09-19 00:41:35 +00:00
|
|
|
if(X) goto yesx
|
|
|
|
else goto nox
|
|
|
|
|
|
|
|
|
|
|
|
yesx:
|
|
|
|
|
|
|
|
if(X) {
|
|
|
|
A=0
|
|
|
|
goto yesx ;; @todo fix undefined symbol error
|
|
|
|
return
|
|
|
|
} else {
|
|
|
|
A=1
|
|
|
|
goto nox
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
sub bla() -> () {
|
|
|
|
return
|
|
|
|
sub fooz() -> () {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
sub fooz2() -> () {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
A=45
|
|
|
|
|
|
|
|
nox:
|
|
|
|
word i
|
|
|
|
|
|
|
|
for i in 10 to 20 {
|
|
|
|
if(i>12) goto fout ;; @todo fix undefined symbol error
|
|
|
|
break
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
bla() ;; @todo fix undefined symbol error
|
|
|
|
}
|
|
|
|
|
|
|
|
fout:
|
|
|
|
return
|
2018-09-05 21:14:08 +00:00
|
|
|
}
|
2018-08-12 21:09:59 +00:00
|
|
|
}
|