Skip to content

mikebharris/COBOL-brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

++++++++++[>+++++++>+++++++>++++++++++>+++>+<<<<<-]>>++.>+.+++++++..+++.>++.<<-----.<+++++++++.>-.<.---.>>>.+.>.

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

Example

$ cd programs
$ cobc -x -free ../brainfuck.cbl
$ ./brainfuck hello.bf 
Program loaded - length is 00837 bytes
Hello COBOL !
$

Known issues and things to improve

  1. It is pretty darn slow
  2. The program mandelbrot.bf doesn't run correctly
  3. The program primes.bf doesn't run correctly
  4. Input (,) only takes a single character at a time and stores a single byte
  5. Reimplement using POINTERs
  6. Reimplement using speed-ups on looped blocks

About

A interpreter for the brainfuck language written in GnuCOBOL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published