Unfuck

Brainfuck Documentation

What is Brainfuck?

Brainfuck is an esoteric programming language created in 1993 by Urban Müller. It is designed to be extremely minimalistic, with only 8 commands that operate on a simple machine model.

The language consists of a 30,000-cell array of bytes, a data pointer that starts at cell 0, and two streams of bytes for input and output.

Commands

Command Description
> Increment data pointer
< Decrement data pointer
+ Increment byte at data pointer
- Decrement byte at data pointer
. Output byte at data pointer
, Input byte to data pointer
[ Jump forward if byte at data pointer is zero
] Jump backward if byte at data pointer is nonzero

Using the Interpreter

Run Mode

Execute the entire program at once and see the final output.

  1. Enter your Brainfuck code in the text area
  2. Optionally provide input in the input field
  3. Click "Run" to execute the program
  4. View the output in the output area

Step Mode

Execute the program one instruction at a time to see how memory changes.

  1. Enter your Brainfuck code and input
  2. Click "Step" to start stepping mode
  3. Click "Continue" to execute the next instruction
  4. Watch the memory visualization update in real-time
  5. See the current instruction highlighted in the code position indicator