Skip to content

vlOd2/BrainfuckInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainfuckInterpreter

Simple brainfuck interpreter written in C
Ports into different languages are available under the ports directory (although no compile scripts, and most have broken EOF/EOL input)

Features/Quirks

Features that this interpreter has:

  • Prints are not buffered and are on stdout
  • Interpreter messages are written on stderr
  • Reading EOF will not write anything to the cell
  • Interrupting (ctrl+c) instantly aborts the execution
  • 8-bit or 32-bit data array (must be changed in the source code)

This interpreter passes most of the tests from here, except for:

  • the unmatched [ ] tests do not pass since the interpreter does not analyse them ahead of time
  • the end of line test passes, but only on Linux (due to the lack of EOL consistency)

Examples

You can find example Brainfuck code (and the test suite) on brainfuck.org

About

Simple brainfuck interpreter

Resources

License

Stars

Watchers

Forks