Skip to content

An interpreter for the Brainfuck language, written in C.

License

Notifications You must be signed in to change notification settings

peterc-s/bf-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An interpreter for the Brainfuck language, written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published