A brainf+ck interpreter written in C++
Brainf+ck is a programming language created in 1993 by Urban Müller, you can read more on it here
- Changable cells count
- Changable cell size
- Nested loops support
- Interprets all files in parameters
- Last cells value used for the exitcode
- A REPL when no files were provided
The entire interpreter is in a single header file brainfcxx.hh
. You can use it in your project if you want. Use the -h
or --help
parameters to show the usage. If you dont provide any files in the command line parameters, the REPL start automatically.
Use make all
to see all the make targets.
Run make
or make compile
which will create a binary in the bin/
folder.
If you want to change the compiler make uses, set the
CXX
variable. Example:make CXX=g++
(This step is Linux-only)
To install the interpreter, run make install
and then you can use bfcxx
anywhere.