Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
! Hello World in ERRE language
|
||||
PROGRAM HELLO
|
||||
BEGIN
|
||||
!$REDIR
|
||||
PRINT("Hello World !")
|
||||
!$NOREDIR
|
||||
END PROGRAM
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(printer-font "Courier") ;; change printer font
|
||||
(printer-page "ROSETTA CODE") ;; starts a new page with nice header
|
||||
(printer-writeln "Hello World!") ;; prints new line (not seen on stdout)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Open Lpt "Lpt:" As #1 '' prints to default printer
|
||||
Print #1, "Hello World!"
|
||||
Close #1
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
SET PRINT ON
|
||||
SET CONSOLE OFF
|
||||
? "Hello World!"
|
||||
SET PRINT OFF
|
||||
SET CONSOLE ON
|
||||
|
|
@ -0,0 +1 @@
|
|||
File_Write: '/dev/lp0', 'Hello world', -FileOverWrite;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
var lp = open("/dev/lp0", fmWrite)
|
||||
lp.writeln "Hello World"
|
||||
lp.close()
|
||||
|
|
@ -0,0 +1 @@
|
|||
File new("/dev/lp0") dup open(File.WRITE) "Hello world\n" << close
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
integer fn = open(iff(platform()=WIN32?"PRN":"/dev/lp0"),"w")
|
||||
if fn=-1 then
|
||||
puts(1,"some error")
|
||||
else
|
||||
puts(fn,"Hello World!")
|
||||
close(fn)
|
||||
puts(1,"success!")
|
||||
end if
|
||||
{} = wait_key()
|
||||
|
|
@ -0,0 +1 @@
|
|||
lp = fopen("/dev/lp0","w") fputs(lp,"Hello world!") fclose(lp)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Sys.open(\var fh, '>', '/dev/lp0')
|
||||
&& fh.println("Hello World!")
|
||||
&& fh.close;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import Foundation
|
||||
|
||||
let out = NSOutputStream(toFileAtPath: "/dev/lp0", append: true)
|
||||
let data = "Hello, World!".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
|
||||
out?.open()
|
||||
out?.write(UnsafePointer<UInt8>(data!.bytes), maxLength: data!.length)
|
||||
out?.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue