Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,4 +1,6 @@
|
|||
{{selection|Short Circuit|Console Program Basics}}In this User Output task, the goal is to display the string "Goodbye, World!" [sic] on a text console.
|
||||
{{selection|Short Circuit|Console Program Basics}}
|
||||
[[Category:Simple]]
|
||||
In this User Output task, the goal is to display the string "Goodbye, World!" [sic] on a text console.
|
||||
|
||||
'''See also'''
|
||||
* [[Hello world/Graphical]]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
LA 1,MSGAREA Point Register 1 to message area
|
||||
SVC 35 Invoke SVC 35 (Write to Operator)
|
||||
BR 14 Return
|
||||
MSGAREA EQU * Message Area
|
||||
DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
|
||||
DC XL2'00' 2 bytes binary of zeros
|
||||
DC C'Goodbye, World!' Text to be written to system console
|
||||
END
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
WTO 'Goodbye, World!'
|
||||
BR 14 Return
|
||||
END
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
{using native SVC (Supervisor Call) to write to system console}
|
||||
|
||||
LA 1,MSGAREA Point Register 1 to message area
|
||||
SVC 35 Invoke SVC 35 (Write to Operator)
|
||||
BR 14 Return
|
||||
MSGAREA EQU * Message Area
|
||||
DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
|
||||
DC XL2'00' 2 bytes binary of zeros
|
||||
DC C'Goodbye, World!' Text to be written to system console
|
||||
END
|
||||
|
||||
{using WTO Macro to generate SVC 35 and message area}
|
||||
|
||||
WTO 'Goodbye, World!'
|
||||
BR 14 Return
|
||||
END
|
||||
4
Task/Hello-world-Text/ALGOL-60/hello-world-text.alg
Normal file
4
Task/Hello-world-Text/ALGOL-60/hello-world-text.alg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
'BEGIN'
|
||||
OUTSTRING(1,'('GOODBYE, WORLD!')');
|
||||
SYSACT(1,14,1)
|
||||
'END'
|
||||
|
|
@ -1 +1 @@
|
|||
implement main () = print "Goodbye, World!\n"
|
||||
implement main0 () = print "Goodbye, World!\n"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
o_text("GOODBYE, WORLD!\n");
|
||||
o_text("Goodbye, World!\n");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
integer
|
||||
main(void)
|
||||
{
|
||||
o_text("GOODBYE, WORLD!\n");
|
||||
o_text("Goodbye, World!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
main: { "Goodbye, World!" << }
|
||||
((main { "Goodbye, World!" << }))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include <iostream>
|
||||
|
||||
int main () {
|
||||
std::cout << "Goodbye, World!" << std::endl;
|
||||
return std::cout.bad();
|
||||
std::cout << "Goodbye, World!\n";
|
||||
}
|
||||
|
|
|
|||
7
Task/Hello-world-Text/C/hello-world-text-3.c
Normal file
7
Task/Hello-world-Text/C/hello-world-text-3.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include<stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("\nGoodbye, World!");
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
print "Goodbye, World!"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
//compile using the new dylan.NET v, 11.2.8.2 or later
|
||||
//compile using the new dylan.NET v, 11.5.1.2 or later
|
||||
//use mono to run the compiler
|
||||
#refstdasm mscorlib.dll
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ import System
|
|||
assembly helloworld exe
|
||||
ver 1.2.0.0
|
||||
|
||||
class public auto ansi Module1
|
||||
class public Program
|
||||
|
||||
method public static void main()
|
||||
Console::WriteLine("Goodbye, World!")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[[
|
||||
#config vm_console #start;
|
||||
#define start ::= "?" system'console .eval&writeLine($literal);
|
||||
#define start ::= "?" < system'console.eval&writeLine( > $literal < ) >;
|
||||
]]
|
||||
|
||||
? "Hello World"
|
||||
? "Hello World!!"
|
||||
|
|
|
|||
1
Task/Hello-world-Text/Elixir/hello-world-text.elixir
Normal file
1
Task/Hello-world-Text/Elixir/hello-world-text.elixir
Normal file
|
|
@ -0,0 +1 @@
|
|||
IO.puts "Goodbye, World!"
|
||||
1
Task/Hello-world-Text/Falcon/hello-world-text-1.falcon
Normal file
1
Task/Hello-world-Text/Falcon/hello-world-text-1.falcon
Normal file
|
|
@ -0,0 +1 @@
|
|||
printl("Goodbye, World!")
|
||||
|
|
@ -1 +1 @@
|
|||
print "Goodbye, World!";nl;
|
||||
say "Goodbye, World!"
|
||||
|
|
|
|||
2
Task/Hello-world-Text/GML/hello-world-text.gml
Normal file
2
Task/Hello-world-Text/GML/hello-world-text.gml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
show_message("Goodbye, World!"); // displays a pop-up message
|
||||
show_debug_message("Goodbye, World!"); // sends text to the debug log or IDE
|
||||
4
Task/Hello-world-Text/Gentee/hello-world-text.gentee
Normal file
4
Task/Hello-world-Text/Gentee/hello-world-text.gentee
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
func hello <main>
|
||||
{
|
||||
print("Goodbye, World!")
|
||||
}
|
||||
1
Task/Hello-world-Text/Glee/hello-world-text-2.glee
Normal file
1
Task/Hello-world-Text/Glee/hello-world-text-2.glee
Normal file
|
|
@ -0,0 +1 @@
|
|||
'Goodbye, World!'
|
||||
1
Task/Hello-world-Text/Glee/hello-world-text-3.glee
Normal file
1
Task/Hello-world-Text/Glee/hello-world-text-3.glee
Normal file
|
|
@ -0,0 +1 @@
|
|||
'"Goodbye,World!"'
|
||||
1
Task/Hello-world-Text/Glee/hello-world-text-4.glee
Normal file
1
Task/Hello-world-Text/Glee/hello-world-text-4.glee
Normal file
|
|
@ -0,0 +1 @@
|
|||
"'Goodbye,World!'"
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
package main
|
||||
|
||||
func main() { println("Goodbye, World!") }
|
||||
import "fmt"
|
||||
|
||||
func main() { fmt.Println("Goodbye, World!") }
|
||||
|
|
|
|||
1
Task/Hello-world-Text/Haxe/hello-world-text.haxe
Normal file
1
Task/Hello-world-Text/Haxe/hello-world-text.haxe
Normal file
|
|
@ -0,0 +1 @@
|
|||
trace("Goodbye, World!");
|
||||
3
Task/Hello-world-Text/OOC/hello-world-text-2.ooc
Normal file
3
Task/Hello-world-Text/OOC/hello-world-text-2.ooc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
main: func {
|
||||
println("Goodbye, World!")
|
||||
}
|
||||
|
|
@ -1 +1,3 @@
|
|||
put ('Goodbye, World!');
|
||||
goodbye:proc options(main);
|
||||
put list('Goodbye, World!');
|
||||
end goodbye;
|
||||
|
|
|
|||
1
Task/Hello-world-Text/Ruby/hello-world-text-3.rb
Normal file
1
Task/Hello-world-Text/Ruby/hello-world-text-3.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
STDOUT.write "Goodbye, World!\n"
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
fn main() {
|
||||
println("Goodbye, World!");
|
||||
fn main () {
|
||||
println!("Goodbye, World!");
|
||||
}
|
||||
|
|
|
|||
16
Task/Hello-world-Text/SPARC-Assembly/hello-world-text.sparc
Normal file
16
Task/Hello-world-Text/SPARC-Assembly/hello-world-text.sparc
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.section ".text"
|
||||
.global _start
|
||||
_start:
|
||||
mov 4,%g1 ! 4 is SYS_write
|
||||
mov 1,%o0 ! 1 is stdout
|
||||
set .msg,%o1 ! pointer to buffer
|
||||
mov (.msgend-.msg),%o2 ! length
|
||||
ta 8
|
||||
|
||||
mov 1,%g1 ! 1 is SYS_exit
|
||||
clr %o0 ! return status is 0
|
||||
ta 8
|
||||
|
||||
.msg:
|
||||
.ascii "Goodbye, world!\n"
|
||||
.msgend:
|
||||
4
Task/Hello-world-Text/Scheme/hello-world-text-4.ss
Normal file
4
Task/Hello-world-Text/Scheme/hello-world-text-4.ss
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(import (scheme base)
|
||||
(scheme write))
|
||||
(display "Hello, world!")
|
||||
(newline)
|
||||
4
Task/Hello-world-Text/Simula/hello-world-text.simula
Normal file
4
Task/Hello-world-Text/Simula/hello-world-text.simula
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
BEGIN
|
||||
OUTTEXT("Goodbye, World!");
|
||||
OUTIMAGE
|
||||
END
|
||||
1
Task/Hello-world-Text/Vim-Script/hello-world-text.vim
Normal file
1
Task/Hello-world-Text/Vim-Script/hello-world-text.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "Goodbye, World!\n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue