15 lines
448 B
Brainfuck
Executable File
15 lines
448 B
Brainfuck
Executable File
#lang reader "reader.rkt"
|
|
|
|
,.>>+<<[,.>>+<<] this is the simple cat program it reads in a value then moves 2 to the right and adds 1 to the counter then moves back to the input cell again
|
|
|
|
>++++++++++++++++++++++++++++++++. we leave the 2nd print the space
|
|
|
|
>- Have to subtract 1 becuase otherwise it will incude the eof character
|
|
|
|
: Print the value (using one of the bf extensions)
|
|
|
|
[-] reset the buffer
|
|
++++++++++. print newline
|
|
|
|
test input
|
|
!Input |