~/felixhub.dev

brainfuck-rust-interpreter

A Brainfuck interpreter, written from scratch in Rust.

v0.1.0rustinterpreternix

What it is

Brainfuck is a tiny esoteric programming language with only eight commands that move a pointer around a tape of memory cells and change their values. This interpreter reads a .bf program from a file and executes it.

It uses a 30,000-cell tape of wrapping 8-bit cells, matches nested loops with a bracket stack, and supports both input and output. It ships with a hello-world and a small guessing-game program, and builds with a Nix flake.