This commit is contained in:
Ingy döt Net 2013-04-10 16:57:12 -07:00
parent 518da4a923
commit 764da6cbbb
6144 changed files with 83610 additions and 11 deletions

View file

@ -0,0 +1,3 @@
In this task, the goal is to create the simplest possible program that is still considered "correct."
=Programming Languages=

View file

@ -0,0 +1,2 @@
---
note: Basic language learning

View file

@ -0,0 +1 @@
~

View file

@ -0,0 +1 @@
SKIP

View file

@ -0,0 +1 @@
1

View file

@ -0,0 +1,4 @@
procedure Empty is
begin
null;
end;

View file

@ -0,0 +1,2 @@
PROC main()
ENDPROC

View file

@ -0,0 +1 @@
return

View file

@ -0,0 +1 @@
#Persistent

View file

@ -0,0 +1 @@
;nothing

View file

@ -0,0 +1 @@
10 END

View file

@ -0,0 +1 @@
RUN

View file

@ -0,0 +1 @@
REM

View file

@ -0,0 +1,2 @@
touch empty
bracmat 'get$empty'

View file

@ -0,0 +1,2 @@
touch empty
bracmat get$empty

View file

@ -0,0 +1 @@
bracmat ''

View file

@ -0,0 +1 @@
bracmat ""

View file

@ -0,0 +1 @@
opendb empty.g y

View 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
}

View file

@ -0,0 +1,4 @@
int main(int argc, char* argv[])
{
return 0;
}

View file

@ -0,0 +1,4 @@
int main ()
{
return 0;
}

View file

@ -0,0 +1,3 @@
main () {
return 0;
}

View file

@ -0,0 +1,2 @@
Identification division.
Program-id. minimal.

View file

@ -0,0 +1,3 @@
module Empty
Start world = world

View file

@ -0,0 +1 @@
void main() {}

View file

@ -0,0 +1,2 @@
main() {
}

View file

@ -0,0 +1 @@
null

View file

@ -0,0 +1,6 @@
package programs;
program Empty_program type BasicProgram {}
function main()
end
end

View file

@ -0,0 +1,12 @@
class
ROOT
create
make
feature
make
do
end
end

View file

@ -0,0 +1 @@
-module(empty).

View file

@ -0,0 +1 @@
main(_) -> 1.

View file

@ -0,0 +1 @@
bye

View file

@ -0,0 +1 @@
end

View file

@ -0,0 +1,2 @@
package main
func main() { }

View file

@ -0,0 +1 @@
main = return ()

View file

@ -0,0 +1 @@
module X where {}

View file

@ -0,0 +1,4 @@
public class EmptyApplet extends java.applet.Applet {
@Override public void init() {
}
}

View file

@ -0,0 +1,4 @@
public class EmptyMainClass {
public static void main(String... args) {
}
}

View file

@ -0,0 +1 @@
method(arg0, arg1, arg2, arg3)

View file

@ -0,0 +1,4 @@
public class EmptyMainClass {
public static void main(String[] args) {
}
}

View file

@ -0,0 +1,4 @@
public class EmptyApplet extends java.applet.Applet {
public void init() {
}
}

View file

@ -0,0 +1,3 @@
\documentclass{article}
\begin{document}
\end{document}

View file

View file

@ -0,0 +1 @@
function [varargout] = emptyprogram(varargin)

View file

@ -0,0 +1,2 @@
.sub empty_program
.end

View file

@ -0,0 +1,2 @@
#!/usr/bin/perl
1;

View file

@ -0,0 +1,2 @@
#!/usr/bin/perl
exit;

View file

@ -0,0 +1,2 @@
#!/usr/bin/perl
# A program without a body will work too

View file

@ -0,0 +1 @@
#!/usr/bin/perl

View file

@ -0,0 +1 @@
(de foo ())

View file

@ -0,0 +1 @@
/* empty */

View file

@ -0,0 +1 @@
/**/

View file

@ -0,0 +1 @@
/* REXX */

View file

@ -0,0 +1 @@
#lang racket

View file

@ -0,0 +1 @@
#!/usr/bin/env ruby

View file

@ -0,0 +1,3 @@
object emptyProgram {
def main(args: Array[String]) {}
}

View file

@ -0,0 +1 @@
[]

View file