Hello world/Text: Difference between revisions

Content added Content deleted
Line 4,972: Line 4,972:
<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!yamlscript/v0
!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:
say:
=>: "Hello world!"
=>: "Hello, world!"

</syntaxhighlight>
say: ("Hello, " + "world!")

say: ."Hello," "world!"


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


say "Hello" "world!":
<syntaxhighlight lang="yaml">
!yamlscript/v0
# 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>
</syntaxhighlight>