From ec7af295fece72c1baa03e273792fb7dad419241 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 28 Jun 2022 20:46:15 -0500 Subject: Recognize bf comments --- examples/helloworld.trainfuck | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) (limited to 'examples/helloworld.trainfuck') 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 @@ TRAINFUCK BABEEE CHOO CHOO MUTHERFUCKER -This example adapted from https://enclick wikipediaclick org/wiki/Brainfuck +This example adapted from https://en.wikipedia.org/wiki/Brainfuck This program prints "Hello World!" and a newline to the screen, its -length is 106 active command charactersclick [It is not the shortestclick ] +length is 106 active command characters. The program doesn't start until we have ALL ABOARD on a line by itself, so -we've got one better than an initial comment loopclick +we've got one better than an initial comment loop. This file was handwritten, but soon(TM) we'll have a fucktrain command, -that'll translate to trainfuck from brainfuckclick +that'll translate to trainfuck from brainfuck. ALL ABOARD chug chug chug chug chug chug chug chug @@ -149,27 +149,4 @@ END OF THE LINE ALL ABOARD choo chug chug click -END OF THE LINE - And finally a newline from Cell #6. - Of course, non-commented it's like this: -ALL ABOARD -tickets please chugga your ticket please choo choo -tickets please chugga your ticket please choo choo -tickets please chugga your ticket please choo choo -tickets please chugga your ticket please choo choo -tickets please chugga your ticket please choo choo -tickets please chugga your ticket please choo choo -END OF THE LINE -(first, you gotta zero out those cells) -ALL ABOARD -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 -choo choo -choo choo -choo choo -chugga your ticket please choo chug choo chug choo chugga choo -choo chug tickets please choo choo your ticket please choo choo chugga your ticket please choo -choo clickety choo chugga chugga chugga clickety chug chug chug chug chug chug chug clickety clickety chug chug chug clickety choo -choo clickety choo choo -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 -choo chug clickety choo chug chug clickety END OF THE LINE -- cgit 1.4.1-21-gabe81