esolang

Brainbool

brainfuck on bits without -. + flips a bit, and input and output are the characters 0 and 1.

2010 · esolangs.org

Tested with 1 example and 4 known programs · Hello World on Try It Online: identical · Test method

Run it

Example

Expected output

101

Output


What it is

Brainbool: brainfuck on bits without '-'; + negates, , reads '1' as 1 and else 0; the tape ends on the left

How its machine works

Its machine has bits instead of bytes.

Brainbool reads and writes bits: input and output are the characters 0 and 1.

Quirks

  • A run stops after 3,000,000 steps.

Brainbool builds on Brainfuck.

Brainfuck derivatives

Cell-based

Write your own in Run Convert a program from Brainbool

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: brainbool.

Command line

shib run brainbool -e ',.,.,.' --input '101'
shib manual brainbool

Source

Module
langs/dialects/ports.js
Interpreter
langs/dialects/bf.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org