Hello world/Text: Difference between revisions

Line 4,972:
<syntaxhighlight lang="yaml">
!yamlscript/v0
(println "Hello world!")
</syntaxhighlight>
 
(printlnsay: "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!")
 
say: ."Hello," "world!":
 
<syntaxhighlight lang="yaml">
!yamlscript/v0
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>
 
55

edits