diff --git a/a/ash.ash b/a/ash.ash index 696a5a5d..a1d9bad5 100644 --- a/a/ash.ash +++ b/a/ash.ash @@ -1,5 +1,5 @@ public class Ash { - public static void main(args : String[]) { + public static func main(args : [String]) { println("Hello, world!") } } diff --git a/a/assembler_lc-3 b/a/assembler_lc-3 new file mode 100644 index 00000000..ea7d2439 --- /dev/null +++ b/a/assembler_lc-3 @@ -0,0 +1,6 @@ + .ORIG x3000 + + LEA R0, HELLOWORLD + PUTS + +HELLOWORLD .STRINGZ "Hello world!\n" diff --git a/f/fish.fish b/f/fish.fish new file mode 100755 index 00000000..b5052017 --- /dev/null +++ b/f/fish.fish @@ -0,0 +1,2 @@ +#!/usr/bin/env fish +echo "Hello, World!" diff --git a/o/objc.m b/o/objc.m index d53547e1..a13e1b7a 100644 --- a/o/objc.m +++ b/o/objc.m @@ -10,12 +10,5 @@ int main(void) { - @autoreleasepool - { - NSFileHandle *_stderr = [NSFileHandle fileHandleWithStandardError]; - NSString *string = @"hello, world\n"; - NSData *data = [string dataUsingEncoding:[NSString defaultCStringEncoding]]; - [_stderr writeData:data]; - } - return EXIT_SUCCESS; -} \ No newline at end of file + NSLog(@"Hello World"); +} diff --git a/s/swift.swift b/s/swift.swift index 7dc46d6e..ad35e5ae 100644 --- a/s/swift.swift +++ b/s/swift.swift @@ -1 +1 @@ -print("Hello, world") +print("Hello World")