++++++++++[>+++++++>+++++++>++++++++++>+++>+<<<<<-]>>++.>+.+++++++..+++.>++.<<-----.<+++++++++.>-.<.---.>>>.+.>.
A interpreter for the brainfuck language written in GnuCOBOL. Probably history's most verbose programming language used to run programs in one of history's most minimalistic languages.
Compile with
cobc -x -free brainfuck.cbl
Run with
./brainfuck hello.bf
$ cd programs
$ cobc -x -free ../brainfuck.cbl
$ ./brainfuck hello.bf
Program loaded - length is 00837 bytes
Hello COBOL !
$
- It is pretty darn slow
- The program mandelbrot.bf doesn't run correctly
- The program primes.bf doesn't run correctly
- Input (,) only takes a single character at a time and stores a single byte
- Reimplement using POINTERs
- Reimplement using speed-ups on looped blocks