Added a 'Hello, World!" tutorial that links Whitespace example to VVhitespace+stdlib.
[vvhitespace] / examples / hello-world / hello.pvvs
... / ...
CommitLineData
1## This program outputs "Hello, world!"
2## It was copied from Wikipedia.
3
4SSSTSSTSSSN | ST: Push +72 (ASCII H)
5TNSS | IO: Output character
6SSSTTSSTSTN | ST: Push +101 (ASCII e)
7TNSS | IO: Output character
8SSSTTSTTSSN | ST: Push +108 (ASCII l)
9TNSS | IO: Output character
10SSSTTSTTSSN | ST: Push +108 (ASCII l)
11TNSS | IO: Output character
12SSSTTSTTTTN | ST: Push +111 (ASCII o)
13TNSS | IO: Output character
14SSSTSTTSSN | ST: Push +44 (ASCII ,)
15TNSS | IO: Output character
16SSSTSSSSSN | ST: Push +32 (ASCII space)
17TNSS | IO: Output character
18SSSTTTSTTTN | ST: Push +119 (ASCII w)
19TNSS | IO: Output character
20SSSTTSTTTTN | ST: Push +111 (ASCII o)
21TNSS | IO: Output character
22SSSTTTSSTSN | ST: Push +114 (ASCII r)
23TNSS | IO: Output character
24SSSTTSTTSSN | ST: Push +108 (ASCII l)
25TNSS | IO: Output character
26SSSTTSSTSSN | ST: Push +100 (ASCII d)
27TNSS | IO: Output character
28SSSTSSSSTN | ST: Push +33 (ASCII !)
29TNSS | IO: Output character
30SSSTSTSN | ST: Push +10 (ASCII '\n')
31TNSS | IO: Output character
32NNN | FC: Terminate program