github generated gh-pages branch

This commit is contained in:
mimi1971
2010-06-24 20:09:28 +08:00
committed by Mike Donaghy
parent 27cce9afa1
commit 97e0e510b5
181 changed files with 88 additions and 1096 deletions

4
l/.gitignore vendored
View File

@@ -1,4 +0,0 @@
*.swp*
*tmp*
*swp*
*~

View File

@@ -1,4 +0,0 @@
\documentclass{article}
\begin{document}
Hello World
\end{document}

View File

@@ -1,16 +0,0 @@
implement Hello;
include "sys.m";
sys: Sys;
include "draw.m";
Hello: module
{
init: fn(ctxt: ref Draw->Context, argv: list of string);
};
init(ctxt: ref Draw->Context, argv: list of string)
{
sys = load Sys Sys->PATH;
sys->print("Hello World\n");
}

View File

@@ -1,18 +0,0 @@
# 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

View File

@@ -1,4 +0,0 @@
; LISP
(DEFUN HELLO-WORLD ()
(PRINT (LIST 'HELLO 'WORLD))
)

View File

@@ -1,14 +0,0 @@
; llvm-as llvm.ll
; x86 assembly: llc llvm.bc -o llvm.s -march x86
; interpreter: lli llvm.bc
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
@.str = internal constant [12 x i8] c"Hello World\00"
; puts from libc
declare i32 @puts(i8*)
define i32 @main(...) {
call i32 @puts(i8* getelementptr([12 x i8]* @.str, i32 0, i32 0))
ret i32 0
}

View File

@@ -1,4 +0,0 @@
HAI
CAN HAS STDIO?
VISIBLE "Hello World"
KTHXBYE

View File

View File

@@ -1,7 +0,0 @@
default
{
state_entry()
{
llSay(0, "Hello World");
}
}

View File

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