An interpreter for the Brainfuck language, written in C.
- Dynamic memory allocation of data cells.
- Allows source files up to 128MB! (Can be altered in source code.)
Clone the repository:
git clone https://github.com/peterc-s/bf-interpreterMake sure you have the Zig toolchain installed and that the latest commit does not have a WIP tag.
zig buildWill build the binary and put it into zig-out/bin/.
To clean up Zig build artifacts:
zig build cleanTo install:
sudo zig build --prefix-exe-dir /usr/sbinTo uninstall:
sudo rm /usr/sbin/bf-interpreterMake sure you have GCC.
makeWill build the binary to the project root directory as bf-interpreter.
To build and run with args:
make run ARGS="bf-examples/fib.bf"To clean up build artifacts:
make cleanTo install (defaults to /usr/sbin):
make installTo uninstall:
make uninstall- Tests.