Merge commit 'repo.or.cz/mob'

This commit is contained in:
Mike Donaghy
2007-12-01 17:10:54 -05:00
12 changed files with 44 additions and 2 deletions

2
awk.awk Normal file
View File

@@ -0,0 +1,2 @@
# awk -f awk.awk
BEGIN { print "Hello World" }

View File

@@ -2,5 +2,5 @@
using namespace std;
int main(){
cout << "Hello World\n";
cout << "Hello World" << endl;
}

2
c.c
View File

@@ -1,6 +1,6 @@
#include<stdio.h>
int main() {
int main(void) {
printf("Hello World\n");
return 0;
}

1
clisp.lisp Normal file
View File

@@ -0,0 +1 @@
(write-line "Hello World")

5
csharp.cs Normal file
View File

@@ -0,0 +1,5 @@
class HelloWorld {
static void Main() {
System.Console.WriteLine("Hello World");
}
}

6
delphi.pas Normal file
View File

@@ -0,0 +1,6 @@
program HelloWorld;
{$APPTYPE CONSOLE}
begin
WriteLn('Hello World');
end.

3
fortran.f90 Normal file
View File

@@ -0,0 +1,3 @@
program helloworld
print *,'Hello World'
end program helloworld

4
haskell.hs Normal file
View File

@@ -0,0 +1,4 @@
module Main
where
main=putStrLn "Hello, World!"

1
hq9+.h Normal file
View File

@@ -0,0 +1 @@
H

18
linux-x86.nasm Normal file
View File

@@ -0,0 +1,18 @@
# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86
section .data
msg db "Hello World", 0xa
len equ $ - msg
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg
mov edx, len
int 0x80
mov eax, 1
mov ebx, 0
int 0x80

1
lua.lua Normal file
View File

@@ -0,0 +1 @@
print("Hello World")

1
ocaml.ml Normal file
View File

@@ -0,0 +1 @@
print_string "Hello World\n"