]> Git — Sourcephile - haskell/symantic-parser.git/blob - parsers/Parsers/Brainfuck/inputs/helloworld.bf
doc: update
[haskell/symantic-parser.git] / parsers / Parsers / Brainfuck / inputs / helloworld.bf
1 [Taken from https://esolangs.org/wiki/Brainfuck]
2 +++++ +++++ initialize counter (cell #0) to 10
3 [ use loop to set the next four cells to 70/100/30/10
4 > +++++ ++ add 7 to cell #1
5 > +++++ +++++ add 10 to cell #2
6 > +++ add 3 to cell #3
7 > + add 1 to cell #4
8 <<<< - decrement counter (cell #0)
9 ]
10 > ++ . print 'H'
11 > + . print 'e'
12 +++++ ++ . print 'l'
13 . print 'l'
14 +++ . print 'o'
15 > ++ . print ' '
16 << +++++ +++++ +++++ . print 'W'
17 > . print 'o'
18 +++ . print 'r'
19 ----- - . print 'l'
20 ----- --- . print 'd'
21 > + . print '!'
22 > . print '\n'