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