CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
3
Task/Empty-program/0DESCRIPTION
Normal file
3
Task/Empty-program/0DESCRIPTION
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
In this task, the goal is to create the simplest possible program that is still considered "correct."
|
||||
|
||||
=Programming Languages=
|
||||
2
Task/Empty-program/1META.yaml
Normal file
2
Task/Empty-program/1META.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
note: Basic language learning
|
||||
1
Task/Empty-program/ALGOL-68/empty-program-1.alg
Normal file
1
Task/Empty-program/ALGOL-68/empty-program-1.alg
Normal file
|
|
@ -0,0 +1 @@
|
|||
~
|
||||
1
Task/Empty-program/ALGOL-68/empty-program-2.alg
Normal file
1
Task/Empty-program/ALGOL-68/empty-program-2.alg
Normal file
|
|
@ -0,0 +1 @@
|
|||
SKIP
|
||||
1
Task/Empty-program/AWK/empty-program.awk
Normal file
1
Task/Empty-program/AWK/empty-program.awk
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
4
Task/Empty-program/Ada/empty-program.ada
Normal file
4
Task/Empty-program/Ada/empty-program.ada
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
procedure Empty is
|
||||
begin
|
||||
null;
|
||||
end;
|
||||
0
Task/Empty-program/Agena/empty-program.agena
Normal file
0
Task/Empty-program/Agena/empty-program.agena
Normal file
2
Task/Empty-program/AmigaE/empty-program.amiga
Normal file
2
Task/Empty-program/AmigaE/empty-program.amiga
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
PROC main()
|
||||
ENDPROC
|
||||
1
Task/Empty-program/AppleScript/empty-program.applescript
Normal file
1
Task/Empty-program/AppleScript/empty-program.applescript
Normal file
|
|
@ -0,0 +1 @@
|
|||
return
|
||||
0
Task/Empty-program/Argile/empty-program.argile
Normal file
0
Task/Empty-program/Argile/empty-program.argile
Normal file
1
Task/Empty-program/AutoHotkey/empty-program.ahk
Normal file
1
Task/Empty-program/AutoHotkey/empty-program.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
#Persistent
|
||||
1
Task/Empty-program/AutoIt/empty-program.autoit
Normal file
1
Task/Empty-program/AutoIt/empty-program.autoit
Normal file
|
|
@ -0,0 +1 @@
|
|||
;nothing
|
||||
1
Task/Empty-program/BASIC/empty-program-1.bas
Normal file
1
Task/Empty-program/BASIC/empty-program-1.bas
Normal file
|
|
@ -0,0 +1 @@
|
|||
10 END
|
||||
1
Task/Empty-program/BASIC/empty-program-2.bas
Normal file
1
Task/Empty-program/BASIC/empty-program-2.bas
Normal file
|
|
@ -0,0 +1 @@
|
|||
RUN
|
||||
0
Task/Empty-program/BBC-BASIC/empty-program.bbc
Normal file
0
Task/Empty-program/BBC-BASIC/empty-program.bbc
Normal file
0
Task/Empty-program/Batch-File/empty-program-1.bat
Normal file
0
Task/Empty-program/Batch-File/empty-program-1.bat
Normal file
1
Task/Empty-program/Batch-File/empty-program-2.bat
Normal file
1
Task/Empty-program/Batch-File/empty-program-2.bat
Normal file
|
|
@ -0,0 +1 @@
|
|||
REM
|
||||
2
Task/Empty-program/Bracmat/empty-program-1.bracmat
Normal file
2
Task/Empty-program/Bracmat/empty-program-1.bracmat
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
touch empty
|
||||
bracmat 'get$empty'
|
||||
2
Task/Empty-program/Bracmat/empty-program-2.bracmat
Normal file
2
Task/Empty-program/Bracmat/empty-program-2.bracmat
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
touch empty
|
||||
bracmat get$empty
|
||||
1
Task/Empty-program/Bracmat/empty-program-3.bracmat
Normal file
1
Task/Empty-program/Bracmat/empty-program-3.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
bracmat ''
|
||||
1
Task/Empty-program/Bracmat/empty-program-4.bracmat
Normal file
1
Task/Empty-program/Bracmat/empty-program-4.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
bracmat ""
|
||||
1
Task/Empty-program/Brlcad/empty-program.brlcad
Normal file
1
Task/Empty-program/Brlcad/empty-program.brlcad
Normal file
|
|
@ -0,0 +1 @@
|
|||
opendb empty.g y
|
||||
11
Task/Empty-program/C++/empty-program.cpp
Normal file
11
Task/Empty-program/C++/empty-program.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
int main ( int /*argc*/, char * * /*argv*/ )
|
||||
{
|
||||
// Unused arguments should not be named
|
||||
// There are variations:
|
||||
// 1: main ''may'' explicitly return a value
|
||||
// (other non-void-returning C++ functions ''must'' do so,
|
||||
// but there's a special exception for main that falling off it
|
||||
// without an explicit return is equivalent to a "return 0;" at
|
||||
// the end of the main function)
|
||||
// 2: The arguments may be omitted entirely
|
||||
}
|
||||
4
Task/Empty-program/C/empty-program-1.c
Normal file
4
Task/Empty-program/C/empty-program-1.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
int main(int argc, char* argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
4
Task/Empty-program/C/empty-program-2.c
Normal file
4
Task/Empty-program/C/empty-program-2.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
int main ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
3
Task/Empty-program/C/empty-program-3.c
Normal file
3
Task/Empty-program/C/empty-program-3.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
main () {
|
||||
return 0;
|
||||
}
|
||||
2
Task/Empty-program/COBOL/empty-program.cobol
Normal file
2
Task/Empty-program/COBOL/empty-program.cobol
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Identification division.
|
||||
Program-id. minimal.
|
||||
3
Task/Empty-program/Clean/empty-program.clean
Normal file
3
Task/Empty-program/Clean/empty-program.clean
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module Empty
|
||||
|
||||
Start world = world
|
||||
0
Task/Empty-program/CoffeeScript/empty-program.coffee
Normal file
0
Task/Empty-program/CoffeeScript/empty-program.coffee
Normal file
1
Task/Empty-program/D/empty-program.d
Normal file
1
Task/Empty-program/D/empty-program.d
Normal file
|
|
@ -0,0 +1 @@
|
|||
void main() {}
|
||||
2
Task/Empty-program/Dart/empty-program.dart
Normal file
2
Task/Empty-program/Dart/empty-program.dart
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
main() {
|
||||
}
|
||||
1
Task/Empty-program/E/empty-program.e
Normal file
1
Task/Empty-program/E/empty-program.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
null
|
||||
6
Task/Empty-program/EGL/empty-program.egl
Normal file
6
Task/Empty-program/EGL/empty-program.egl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package programs;
|
||||
|
||||
program Empty_program type BasicProgram {}
|
||||
function main()
|
||||
end
|
||||
end
|
||||
12
Task/Empty-program/Eiffel/empty-program.e
Normal file
12
Task/Empty-program/Eiffel/empty-program.e
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class
|
||||
ROOT
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature
|
||||
make
|
||||
do
|
||||
|
||||
end
|
||||
end
|
||||
1
Task/Empty-program/Erlang/empty-program-1.erl
Normal file
1
Task/Empty-program/Erlang/empty-program-1.erl
Normal file
|
|
@ -0,0 +1 @@
|
|||
-module(empty).
|
||||
1
Task/Empty-program/Erlang/empty-program-2.erl
Normal file
1
Task/Empty-program/Erlang/empty-program-2.erl
Normal file
|
|
@ -0,0 +1 @@
|
|||
main(_) -> 1.
|
||||
0
Task/Empty-program/Euphoria/empty-program.euphoria
Normal file
0
Task/Empty-program/Euphoria/empty-program.euphoria
Normal file
0
Task/Empty-program/Forth/empty-program-1.fth
Normal file
0
Task/Empty-program/Forth/empty-program-1.fth
Normal file
1
Task/Empty-program/Forth/empty-program-2.fth
Normal file
1
Task/Empty-program/Forth/empty-program-2.fth
Normal file
|
|
@ -0,0 +1 @@
|
|||
bye
|
||||
1
Task/Empty-program/Fortran/empty-program.f
Normal file
1
Task/Empty-program/Fortran/empty-program.f
Normal file
|
|
@ -0,0 +1 @@
|
|||
end
|
||||
2
Task/Empty-program/Go/empty-program.go
Normal file
2
Task/Empty-program/Go/empty-program.go
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
package main
|
||||
func main() { }
|
||||
1
Task/Empty-program/Haskell/empty-program-1.hs
Normal file
1
Task/Empty-program/Haskell/empty-program-1.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
main = return ()
|
||||
1
Task/Empty-program/Haskell/empty-program-2.hs
Normal file
1
Task/Empty-program/Haskell/empty-program-2.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
module X where {}
|
||||
4
Task/Empty-program/Java/empty-program-1.java
Normal file
4
Task/Empty-program/Java/empty-program-1.java
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
public class EmptyApplet extends java.applet.Applet {
|
||||
@Override public void init() {
|
||||
}
|
||||
}
|
||||
4
Task/Empty-program/Java/empty-program-2.java
Normal file
4
Task/Empty-program/Java/empty-program-2.java
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
public class EmptyMainClass {
|
||||
public static void main(String... args) {
|
||||
}
|
||||
}
|
||||
1
Task/Empty-program/Java/empty-program-3.java
Normal file
1
Task/Empty-program/Java/empty-program-3.java
Normal file
|
|
@ -0,0 +1 @@
|
|||
method(arg0, arg1, arg2, arg3)
|
||||
4
Task/Empty-program/Java/empty-program-4.java
Normal file
4
Task/Empty-program/Java/empty-program-4.java
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
public class EmptyMainClass {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
4
Task/Empty-program/Java/empty-program-5.java
Normal file
4
Task/Empty-program/Java/empty-program-5.java
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
public class EmptyApplet extends java.applet.Applet {
|
||||
public void init() {
|
||||
}
|
||||
}
|
||||
3
Task/Empty-program/LaTeX/empty-program.tex
Normal file
3
Task/Empty-program/LaTeX/empty-program.tex
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
\documentclass{article}
|
||||
\begin{document}
|
||||
\end{document}
|
||||
0
Task/Empty-program/Lua/empty-program.lua
Normal file
0
Task/Empty-program/Lua/empty-program.lua
Normal file
1
Task/Empty-program/MATLAB/empty-program.m
Normal file
1
Task/Empty-program/MATLAB/empty-program.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
function [varargout] = emptyprogram(varargin)
|
||||
2
Task/Empty-program/PIR/empty-program.pir
Normal file
2
Task/Empty-program/PIR/empty-program.pir
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.sub empty_program
|
||||
.end
|
||||
2
Task/Empty-program/Perl/empty-program-1.pl
Normal file
2
Task/Empty-program/Perl/empty-program-1.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/perl
|
||||
1;
|
||||
2
Task/Empty-program/Perl/empty-program-2.pl
Normal file
2
Task/Empty-program/Perl/empty-program-2.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/perl
|
||||
exit;
|
||||
2
Task/Empty-program/Perl/empty-program-3.pl
Normal file
2
Task/Empty-program/Perl/empty-program-3.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/perl
|
||||
# A program without a body will work too
|
||||
1
Task/Empty-program/Perl/empty-program-4.pl
Normal file
1
Task/Empty-program/Perl/empty-program-4.pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
#!/usr/bin/perl
|
||||
1
Task/Empty-program/PicoLisp/empty-program.l
Normal file
1
Task/Empty-program/PicoLisp/empty-program.l
Normal file
|
|
@ -0,0 +1 @@
|
|||
(de foo ())
|
||||
1
Task/Empty-program/REXX/empty-program-1.rexx
Normal file
1
Task/Empty-program/REXX/empty-program-1.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* empty */
|
||||
1
Task/Empty-program/REXX/empty-program-2.rexx
Normal file
1
Task/Empty-program/REXX/empty-program-2.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
/**/
|
||||
1
Task/Empty-program/REXX/empty-program-3.rexx
Normal file
1
Task/Empty-program/REXX/empty-program-3.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* REXX */
|
||||
1
Task/Empty-program/Racket/empty-program.rkt
Normal file
1
Task/Empty-program/Racket/empty-program.rkt
Normal file
|
|
@ -0,0 +1 @@
|
|||
#lang racket
|
||||
1
Task/Empty-program/Ruby/empty-program.rb
Normal file
1
Task/Empty-program/Ruby/empty-program.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
#!/usr/bin/env ruby
|
||||
3
Task/Empty-program/Scala/empty-program.scala
Normal file
3
Task/Empty-program/Scala/empty-program.scala
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
object emptyProgram {
|
||||
def main(args: Array[String]) {}
|
||||
}
|
||||
0
Task/Empty-program/Scheme/empty-program.ss
Normal file
0
Task/Empty-program/Scheme/empty-program.ss
Normal file
1
Task/Empty-program/Smalltalk/empty-program.st
Normal file
1
Task/Empty-program/Smalltalk/empty-program.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
0
Task/Empty-program/Tcl/empty-program.tcl
Normal file
0
Task/Empty-program/Tcl/empty-program.tcl
Normal file
Loading…
Add table
Add a link
Reference in a new issue