Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,6 @@
' FB 1.05.0 Win64
Open Err As #1
Print #1, "Goodbye World!"
Close #1
Sleep

View file

@ -0,0 +1,5 @@
define stderr(s::string) => {
file_stderr->writeBytes(#s->asBytes)
}
stderr('Goodbye, World!')

View file

@ -0,0 +1,5 @@
-- print to standard error
stdErr("Goodbye, World!", TRUE)
-- print to the Windows debug console (shown in realtime e.g. in Systernal's DebugView)
dbgPrint("Goodbye, World!")

View file

@ -0,0 +1,7 @@
sx = xtra("Shell").new()
-- print to standard error
sx.shell_cmd("echo Goodbye, World!>&2")
-- print to system.log (shown in realtime e.g. in Konsole.app)
sx.shell_cmd("logger Goodbye, World!")

View file

@ -0,0 +1 @@
stderr.writeln "Hello World"

View file

@ -0,0 +1 @@
System.Err "Goodbye, World!" << cr

View file

@ -0,0 +1 @@
puts(2,"Goodbye, World!\n")

View file

@ -0,0 +1,6 @@
class HelloWorld
**Prints "Goodbye, World!" to standard error**
on start
print to Console.error made !, "Goodbye, World!"

View file

@ -0,0 +1 @@
fputs(stderr,"Goodbye, World!")

View file

@ -0,0 +1 @@
STDERR.println("Goodbye, World!");

View file

@ -0,0 +1,11 @@
import Foundation
let out = NSOutputStream(toFileAtPath: "/dev/stderr", append: true)
let err = "Goodbye, World!".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
out?.open()
let success = out?.write(UnsafePointer<UInt8>(err!.bytes), maxLength: err!.length)
out?.close()
if let bytes = success {
println("\nWrote \(bytes) bytes")
}

View file

@ -0,0 +1 @@
out "goodbye, world!" endl console.err

View file

@ -0,0 +1 @@
(DISPLAY "Goodbye, World!" *ERROR-OUTPUT*)

View file

@ -0,0 +1 @@
error("Goodbye, World!")