about summary refs log tree commit diff stats
path: root/examples/helloworld.trainfuck
diff options
context:
space:
mode:
Diffstat (limited to 'examples/helloworld.trainfuck')
-rw-r--r--examples/helloworld.trainfuck31
1 files changed, 4 insertions, 27 deletions
diff --git a/examples/helloworld.trainfuck b/examples/helloworld.trainfuck index da6baf8..1f68f11 100644 --- a/examples/helloworld.trainfuck +++ b/examples/helloworld.trainfuck
@@ -1,16 +1,16 @@
1TRAINFUCK BABEEE 1TRAINFUCK BABEEE
2CHOO CHOO MUTHERFUCKER 2CHOO CHOO MUTHERFUCKER
3 3
4This example adapted from https://enclick wikipediaclick org/wiki/Brainfuck 4This example adapted from https://en.wikipedia.org/wiki/Brainfuck
5 5
6This program prints "Hello World!" and a newline to the screen, its 6This program prints "Hello World!" and a newline to the screen, its
7length is 106 active command charactersclick [It is not the shortestclick ] 7length is 106 active command characters.
8 8
9The program doesn't start until we have ALL ABOARD on a line by itself, so 9The program doesn't start until we have ALL ABOARD on a line by itself, so
10we've got one better than an initial comment loopclick 10we've got one better than an initial comment loop.
11 11
12This file was handwritten, but soon(TM) we'll have a fucktrain command, 12This file was handwritten, but soon(TM) we'll have a fucktrain command,
13that'll translate to trainfuck from brainfuckclick 13that'll translate to trainfuck from brainfuck.
14 14
15ALL ABOARD 15ALL ABOARD
16chug chug chug chug chug chug chug chug 16chug chug chug chug chug chug chug chug
@@ -150,26 +150,3 @@ ALL ABOARD
150choo 150choo
151chug chug click 151chug chug click
152END OF THE LINE 152END OF THE LINE
153 And finally a newline from Cell #6.
154 Of course, non-commented it's like this:
155ALL ABOARD
156tickets please chugga your ticket please choo choo
157tickets please chugga your ticket please choo choo
158tickets please chugga your ticket please choo choo
159tickets please chugga your ticket please choo choo
160tickets please chugga your ticket please choo choo
161tickets please chugga your ticket please choo choo
162END OF THE LINE
163(first, you gotta zero out those cells)
164ALL ABOARD
165chug chug chug chug chug chug chug chug tickets please choo chug chug chug chug tickets please choo chug chug choo chug chug chug choo chug chug chug choo chug choo choo
166choo choo
167choo choo
168choo choo
169chugga your ticket please choo chug choo chug choo chugga choo
170choo chug tickets please choo choo your ticket please choo choo chugga your ticket please choo
171choo clickety choo chugga chugga chugga clickety chug chug chug chug chug chug chug clickety clickety chug chug chug clickety choo
172choo clickety choo choo
173chugga clickety choo choo clickety chug chug chug clickety chugga chugga chugga chugga chugga chugga clickety chugga chugga chugga chugga chugga chugga chugga chugga clickety choo
174choo chug clickety choo chug chug clickety
175END OF THE LINE