Hello world/Text: Difference between revisions

This version technically worked in the Waduzitdo web interpreter, but I'm sure some implementations require the stop run command S: so I finally gave the program a proper end
imported>Yorecode
(This version technically worked in the Waduzitdo web interpreter, but I'm sure some implementations require the stop run command S: so I finally gave the program a proper end)
(21 intermediate revisions by 14 users not shown)
Line 666:
 
<syntaxhighlight lang="babel">"Hello world!" <<</syntaxhighlight>
 
=={{header|Tiny Craft BasicBabyCobol}}==
<syntaxhighlight lang="yamlcobol">
* Since no quotes are used, two undeclared fields (variables) are printed.
* Their default values are their own names in uppercase.
IDENTIFICATION DIVISION.
PROGRAM-ID. USER OUTPUT.
PROCEDURE DIVISION.
DISPLAY HELLO WORLD.
</syntaxhighlight>
 
=={{header|Bait}}==
Line 686 ⟶ 696:
{{works with|Chipmunk Basic}}
{{works with|Commodore BASIC}}
{{works with|CZX Spectrum Basic}}
{{works with|GW-BASIC}}
{{works with|IS-BASIC}}
Line 695 ⟶ 704:
{{works with|MSX BASIC}}
{{works with|QBasic}}
{{works with|Quite BASIC}}
{{works with|Run BASIC}}
{{works with|Tiny BASIC}}
{{works with|CZXZX Spectrum Basic}}
<syntaxhighlight lang="qbasic">10 print "Hello world!"</syntaxhighlight>
 
Line 704 ⟶ 715:
{{works with|BaCon}} [[Category:BaCon]]
{{works with|BASIC256}}
{{works with|FreeBASIC}}
{{works with|IS-BASIC}}
{{works with|M2000 Interpreter}}
{{works with|QBasic}}
{{works with|QB64}}
{{works with|Script Basic}}
{{works with|SmallBASIC}}
{{works with|Yabasic}}
<syntaxhighlight lang="qbasic">PRINT "Hello world!"</syntaxhighlight>
Line 785 ⟶ 800:
=={{header|Binary Lambda Calculus}}==
As explained at https://www.ioccc.org/2012/tromp/hint.html
<syntaxhighlight lang="blc"pre> Hello world!</syntaxhighlightpre>
 
=={{header|Bird}}==
Line 956 ⟶ 971:
<syntaxhighlight lang="brlcad">
echo Hello world!
</syntaxhighlight>
 
=={{header|Bruijn}}==
 
Ignore stdin by not referring to the abstraction:
 
<syntaxhighlight lang="yamlbruijn">
(saymain ["Hello world!")]
</syntaxhighlight>
 
Line 1,486 ⟶ 1,509:
<syntaxhighlight lang="dragon">
showln "Hello world!"
</syntaxhighlight>
 
=={{header|DreamBerd}}==
<syntaxhighlight lang="yamltext">
sayprint "Hello world!":!
</syntaxhighlight>
 
Line 2,002 ⟶ 2,030:
=={{header|GLBasic}}==
<syntaxhighlight lang="glbasic">STDOUT "Hello world!"</syntaxhighlight>
 
=={{header|Gleam}}==
<syntaxhighlight lang="yamlgleam">
import gleam/io
 
pub fn main() {
say io.println("Hello world!")
}
</syntaxhighlight>
 
=={{header|Glee}}==
Line 2,576 ⟶ 2,613:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">writeln "yo, peepsHello"</syntaxhighlight>
 
=={{header|Lasso}}==
Line 2,927 ⟶ 2,964:
Hello world!
</syntaxhighlight>
 
=={{header|Mastermind}}==
<syntaxhighlight lang="mastermind">output "Hello world!\n";</syntaxhighlight>
 
=={{header|Mathcad}}==
Line 3,369 ⟶ 3,409:
=={{header|Onyx}}==
<syntaxhighlight lang="onyx">`Hello world!\n' print flush</syntaxhighlight>
 
=={{header|Onyx (wasm)}}==
<syntaxhighlight lang="yamlTS">
use core {printf}
main :: () {
(println printf("Hello world!");
}
</syntaxhighlight>
{{out}}
<pre>
say "Hello": "world!"
</pre>
 
=={{header|OOC}}==
Line 4,015 ⟶ 4,067:
=={{header|Rockstar}}==
<syntaxhighlight lang="rockstar">Shout "Hello world!"</syntaxhighlight>
 
=={{header|RPG}}==
<nowiki>**</nowiki>free<br>
20dsply print "'Hello, World!"';
 
=={{header|RPL}}==
Line 4,473 ⟶ 4,529:
20 END
</syntaxhighlight>
 
=={{header|Tiny Craft Basic}}==
<syntaxhighlight lang="basic">10 cls
20 print "Hello, World!"
30 shell "pause"</syntaxhighlight>
 
=={{header|TMG}}==
Line 4,585 ⟶ 4,636:
@print-str ( str* -- )
&while
LDAk #18.Console/write DEO
INC2 LDAk ?&while
POP2
Line 4,724 ⟶ 4,775:
=={{header|VTL-2}}==
<syntaxhighlight lang="vtl-2">10 ?="Hello world!"</syntaxhighlight>
=={{header|Waduzitdo}}==
<syntaxhighlight lang="basicwaduzitdo">10T:Hello clsworld!
S:</syntaxhighlight>
 
=={{header|Wart}}==
Line 4,955 ⟶ 5,009:
This is a good example of various ways to write function calls in YAMLScript.
 
Since function calls must fit into their YAML context, which may be mappings, sequences or scalars;
it is actually useful to support these variants.
 
<syntaxhighlight lang="yaml">
!yamlscript/v0
(println "Hello world!")
</syntaxhighlight>
 
say: "Hello, world!"
<syntaxhighlight lang="yaml">
!yamlscript/v0
(say "Hello world!")
</syntaxhighlight>
 
=>: (say "Hello, world!")
<syntaxhighlight lang="yaml">
!yamlscript/v0
say("Hello world!")
</syntaxhighlight>
 
=>: say("Hello, world!")
<syntaxhighlight lang="yaml">
!yamlscript/v0
say "Hello world!":
</syntaxhighlight>
 
<syntaxhighlight lang="yaml">
!yamlscript/v0
say:
=>: "Hello, world!"
</syntaxhighlight>
 
say: ("Hello, " + "world!")
<syntaxhighlight lang="yaml">
!yamlscript/v0
say "Hello": "world!"
</syntaxhighlight>
 
say: ."Hello," "world!"
<syntaxhighlight lang="yaml">
 
!yamlscript/v0
say "Hello,": "world!"
# The . at the start of a value is way to indicate that the value is a scalar (string).
 
# Without the . this would be invalid YAML(Script).
say: ."Hello"," "world!":
</syntaxhighlight>
 
61

edits