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
1
Task/Program-termination/Axe/program-termination.axe
Normal file
1
Task/Program-termination/Axe/program-termination.axe
Normal file
|
|
@ -0,0 +1 @@
|
|||
Returnʳ
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
'FB 1.05.0 Win64 'endprog.bas'
|
||||
|
||||
Dim isError As Boolean = True
|
||||
If isError Then
|
||||
End 1
|
||||
End If
|
||||
|
||||
' The following code won't be executed
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
12
Task/Program-termination/Lasso/program-termination-1.lasso
Normal file
12
Task/Program-termination/Lasso/program-termination-1.lasso
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/lasso9
|
||||
//[
|
||||
|
||||
handle => {
|
||||
stdoutnl('The end is here')
|
||||
}
|
||||
|
||||
stdoutnl('Starting execution')
|
||||
|
||||
abort
|
||||
|
||||
stdoutnl('Ending execution')
|
||||
12
Task/Program-termination/Lasso/program-termination-2.lasso
Normal file
12
Task/Program-termination/Lasso/program-termination-2.lasso
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/lasso9
|
||||
|
||||
handle_error => {
|
||||
stdoutnl('There was an error ' + error_msg)
|
||||
abort
|
||||
}
|
||||
|
||||
stdoutnl('Starting execution')
|
||||
|
||||
0/0
|
||||
|
||||
stdoutnl('Ending execution')
|
||||
2
Task/Program-termination/Nim/program-termination.nim
Normal file
2
Task/Program-termination/Nim/program-termination.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if problem:
|
||||
quit(QuitFailure)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import: os
|
||||
|
||||
some_condition ifTrue: [ 0 OS.exit ]
|
||||
3
Task/Program-termination/Phix/program-termination-1.phix
Normal file
3
Task/Program-termination/Phix/program-termination-1.phix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if error_code!=NO_ERROR then
|
||||
abort(0)
|
||||
end if
|
||||
3
Task/Program-termination/Phix/program-termination-2.phix
Normal file
3
Task/Program-termination/Phix/program-termination-2.phix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if error_code!=NO_ERROR then
|
||||
exit_thread(0)
|
||||
end if
|
||||
4
Task/Program-termination/Ring/program-termination.ring
Normal file
4
Task/Program-termination/Ring/program-termination.ring
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
for n = 1 to 10
|
||||
see n + nl
|
||||
if n = 5 exit ok
|
||||
next
|
||||
2
Task/Program-termination/SSEM/program-termination.ssem
Normal file
2
Task/Program-termination/SSEM/program-termination.ssem
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
00000000000000110000000000000000 Test
|
||||
00000000000001110000000000000000 Stop
|
||||
3
Task/Program-termination/Sidef/program-termination.sidef
Normal file
3
Task/Program-termination/Sidef/program-termination.sidef
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if (problem) {
|
||||
Sys.exit(code);
|
||||
}
|
||||
1
Task/Program-termination/Ursa/program-termination.ursa
Normal file
1
Task/Program-termination/Ursa/program-termination.ursa
Normal file
|
|
@ -0,0 +1 @@
|
|||
stop
|
||||
2
Task/Program-termination/jq/program-termination-1.jq
Normal file
2
Task/Program-termination/jq/program-termination-1.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jq -n '"Hello", if 1 then error else 2 end'
|
||||
"Hello"
|
||||
2
Task/Program-termination/jq/program-termination-2.jq
Normal file
2
Task/Program-termination/jq/program-termination-2.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jq -n '"Hello" | if 1 then error else 2 end'
|
||||
jq: error: Hello
|
||||
Loading…
Add table
Add a link
Reference in a new issue