Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.04 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.04 KB

bf-interpreter

An interpreter for the Brainfuck language, written in C.

Features

  • Dynamic memory allocation of data cells.
  • Allows source files up to 128MB! (Can be altered in source code.)

Building

Clone the repository:

git clone https://github.com/peterc-s/bf-interpreter

With Zig

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

With Make

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

TODO

  • Tests.