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-interpreter
Make sure you have the Zig toolchain installed and that the latest commit does not have a WIP tag.
zig build
Will build the binary and put it into zig-out/bin/
.
To clean up Zig build artifacts:
zig build clean
To install:
sudo zig build --prefix-exe-dir /usr/sbin
To uninstall:
sudo rm /usr/sbin/bf-interpreter
Make sure you have GCC.
make
Will 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 clean
To install (defaults to /usr/sbin
):
make install
To uninstall:
make uninstall
- Tests.