Hello world/Text: Difference between revisions

Content added Content deleted
imported>Fultonm
m (IBM Z HL/ASM 'Hello World')
Line 4,931: Line 4,931:


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
(println "Hello world!")
(println "Hello world!")
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
(say "Hello world!")
(say "Hello world!")
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
say("Hello world!")
say("Hello world!")
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
say("Hello world!"):
say "Hello world!":
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
say:
say:
- "Hello world!"
=>: "Hello world!"
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
say: ["Hello world!"]
say "Hello": "world!"
</syntaxhighlight>

<syntaxhighlight lang="yaml">
say: "Hello world!"
</syntaxhighlight>

<syntaxhighlight lang="yaml">
say("Hello"): "world!"
</syntaxhighlight>

<syntaxhighlight lang="yaml">
say: ["Hello", "world!"]
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
# The . at the start of a value is way to indicate that the value is a scalar (string).
# 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).
# Without the . this would be invalid YAML(Script).