A Turing-complete Brainfuck interpreter written in C, which includes an interactive mode.
brainfuck_c [-s] [-n] [-f filename]
-n treat 10 (newline) as 0
-f brainfuck program file
-s immediately flush output to stdout
All files are licensed under GPL 2.0, unless otherwise specified, as is the case with src/alternatives.c
(which is public domain).
Check brainfuck_examples
for example programs, many of which were written by Daniel B. Cristofani.
The only dependencies for building this program are CMake and a C Compiler. It can be built on MacOS or Linux with the following set of commands:
$ mkdir build
$ cd build
$ cmake ..
$ make
On Windows, using MinGW and CMake (both binaries must be in $PATH), you must use this set of commands:
$ mkdir build
$ cd build
$ cmake .. -G "MinGW Makefiles"
$ mingw32-make
The executable will now be in the build
directory you created.
- Faster mode for file input
- Add more options for interpreter (e.g. disable wrapping)