Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap


You are here: irt.org | FOLDOC | Brainfuck

<language> An eight-instruction esoteric programming language created by Urban Müller. His goal was apparently to create a Turing-complete language with the smallest compiler ever, for the Amiga OS 2.0. He eventually reduced his compiler to under 200 bytes.

A Brainfuck program has a pointer that moves within an array of 30000 bytes, initially all set to zero. The pointer initially points to the beginning of this array. The language has eight commands, each of which is represented as a single character, and which can be expressed in terms of C as follows:

 >   ==>    ++p;
 <   ==>    --p;
 +   ==>    ++*p;
 -   ==>    --*p;
 .   ==>    putchar(*p);
 ,   ==>    *p = getchar();
 [   ==>    while (*p) {
 ]   ==>    }

Brian Raiter's Brainfuck page (http://muppetlabs.com/~breadbox/bf/).


Nearby terms: brain-dead « brain dump « brain fart « Brainfuck » braino » branch » Branch and Hang

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb