Brainfuck interpreter

About

A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.

The Brainfuck programming language consists of eight commands, each of which is represented as a single character.

> Increment the pointer.
< Decrement the pointer.
+ Increment the byte at the pointer.
- Decrement the byte at the pointer.
. Output the byte at the pointer.
, Input a byte and store it in the byte at the pointer.
[ Jump past the matching ] if the byte at the pointer is zero.
] Jump to the matching [.
(websource)

This program is an interpreter for Brainfuck code. You can copy and paste the code into the input field and press the Run button to execute it. You can choose to follow the progress of the execution in realtime and watch the cell contents and pointer, or you can turn it off for ultra fast results.

There is a debugger in which you can execute single instructions step by step, and even set a breakpoint at which execution will be paused.

Screenshots


Note: In this screenshot you see the code of a so-called 'Quine', made by Daniel B. Cristofani. A Quine is a program that reproduces itself.

Download

Version 0.1:
brainfck01.zip


Last update: June 28, 2003 by Dracula