Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,5 @@
myprocedure
END // End of main program
PROC myprocedure
PRINT "Hello, this is a procedure"
ENDPROC myprocedure

View file

@ -0,0 +1,5 @@
LOOP
PRINT "I'm in a loop!"
EXIT
ENDLOOP
PRINT "But i somehow got out of it."

View file

@ -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."

View file

@ -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

View file

@ -0,0 +1,5 @@
block outer:
for i in 0..1000:
for j in 0..1000:
if i + j == 3:
break outer

View file

@ -0,0 +1,7 @@
var f = open "input.txt"
try:
var s = readLine f
except ReadIOEffect:
echo "An error occured!"
finally:
close f

View file

@ -0,0 +1 @@
break

View file

@ -0,0 +1 @@
continue

View file

@ -0,0 +1 @@
perform

View file

@ -0,0 +1,3 @@
#ilASM{ jmp :label }
...
#ilASM{ ::label }

View file

@ -0,0 +1,6 @@
#ilASM{ call :%label }
...
#ilASM{ jmp :skip
:%label
ret
::skip }

View file

@ -0,0 +1,6 @@
for i=1 to 100 do
if a[i]=x then
location = i
exit
end if
end for

View file

@ -0,0 +1,4 @@
for i=1 to 100 do
if a[i]=0 then continue end if
...
end for

View file

@ -0,0 +1,6 @@
i = 1
while true
see i + nl
if i = 10 see "Break!" exit ok
i = i + 1
end

View file

@ -0,0 +1,3 @@
00101000000000000000000000000000 20 to CI
...
01010000000000000000000000000000 20. 10

View file

@ -0,0 +1,3 @@
00101000000001000000000000000000 Add 20 to CI
...
01010000000000000000000000000000 20. 10