Itai-Nelken / brainf

A brainfuck interpreter written in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE: this project is superseded by Brainf2 and so isn't maintained anymore.

brainf

Build Release
A brainfuck interpreter written in C.

NOTE: included in this repo is also a C++ implementation of a stack, but it isn't used anywhere in brainf.

features

  • Understands both strings of instructions and single ones, no need for a separator!
  • Can read instructions from a file.
  • can compile brainfuck code into C code

Installation

If you are using Debian and derivatives, you can download Debian packages for amd64 and arm64 in the latest release.
Otherwise compile manually (its not hard!).

Compiling

git clone https://github.com/Itai-Nelken/brainf.git
cd brainf
mkdir build
cd build
cmake ..
make

Installing

In the build folder run sudo make install

Uninstalling

In the build folder run sudo make uninstall

brainfuck tutorial

TODO

  • dynamic memory size.
  • dynamic stack size.

About

A brainfuck interpreter written in C.

License:MIT License


Languages

Language:C 68.3%Language:CMake 22.4%Language:C++ 9.2%