hello world in BF

This commit is contained in:
R. Tyler Croy 2011-07-04 20:17:57 -07:00
parent 22fcc8ea9d
commit 8ffe968b2d
1 changed files with 21 additions and 0 deletions

21
hello.bf Normal file
View File

@ -0,0 +1,21 @@
+++++ +++++ initialize counter (cell #0) to 10
[ use loop to set the next four cells to 70/100/30/10
> +++++ ++ add 7 to cell #1
> +++++ +++++ add 10 to cell #2
> +++ add 3 to cell #3
> + add 1 to cell #4
<<<< - decrement counter (cell #0)
]
> ++ . print 'H'
> + . print 'e'
+++++ ++ . print 'l'
. print 'l'
+++ . print 'o'
> ++ . print ' '
<< +++++ +++++ +++++ . print 'W'
> . print 'o'
+++ . print 'r'
----- - . print 'l'
----- --- . print 'd'
> + . print '!'
> . print '\n'