Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
myprocedure
|
||||
END // End of main program
|
||||
PROC myprocedure
|
||||
PRINT "Hello, this is a procedure"
|
||||
ENDPROC myprocedure
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
LOOP
|
||||
PRINT "I'm in a loop!"
|
||||
EXIT
|
||||
ENDLOOP
|
||||
PRINT "But i somehow got out of it."
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
PRINT "I'm in a loop!"
|
||||
LOOP
|
||||
INPUT "Do you want to exit?":answer$
|
||||
EXIT WHEN answer$="y"
|
||||
ENDLOOP
|
||||
PRINT "You got out of it."
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
PRINT "Hello world"
|
||||
GOTO label
|
||||
PRINT "This line will never be output"
|
||||
label:
|
||||
PRINT "This program will end thanks to the evil GOTO statement"
|
||||
END
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
block outer:
|
||||
for i in 0..1000:
|
||||
for j in 0..1000:
|
||||
if i + j == 3:
|
||||
break outer
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
var f = open "input.txt"
|
||||
try:
|
||||
var s = readLine f
|
||||
except ReadIOEffect:
|
||||
echo "An error occured!"
|
||||
finally:
|
||||
close f
|
||||
|
|
@ -0,0 +1 @@
|
|||
break
|
||||
|
|
@ -0,0 +1 @@
|
|||
continue
|
||||
|
|
@ -0,0 +1 @@
|
|||
perform
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#ilASM{ jmp :label }
|
||||
...
|
||||
#ilASM{ ::label }
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#ilASM{ call :%label }
|
||||
...
|
||||
#ilASM{ jmp :skip
|
||||
:%label
|
||||
ret
|
||||
::skip }
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
for i=1 to 100 do
|
||||
if a[i]=x then
|
||||
location = i
|
||||
exit
|
||||
end if
|
||||
end for
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
for i=1 to 100 do
|
||||
if a[i]=0 then continue end if
|
||||
...
|
||||
end for
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
i = 1
|
||||
while true
|
||||
see i + nl
|
||||
if i = 10 see "Break!" exit ok
|
||||
i = i + 1
|
||||
end
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
00101000000000000000000000000000 20 to CI
|
||||
...
|
||||
01010000000000000000000000000000 20. 10
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
00101000000001000000000000000000 Add 20 to CI
|
||||
...
|
||||
01010000000000000000000000000000 20. 10
|
||||
Loading…
Add table
Add a link
Reference in a new issue