esolang

Minimal-2D

brainfuck on a grid with direction letters U D L R, and / to skip the next command when the cell is 0.

2009 · esolangs.org

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

Run it

Example

Expected output

H

Output


What it is

Minimal-2D: < > + - . , as brainfuck, / skips the next instruction when the cell is 0, U D L R set the direction

How its machine works

Its machine has a two-dimensional program.

Quirks

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

Minimal-2D builds on Brainfuck.

Two-dimensional languages

Brainfuck derivatives

Write your own in Run Convert a program from Minimal-2D

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run minimal2d -e '++++++++/D            /LR>.
         R>+++++++++<-/UU'
shib manual minimal2d

Source

Module
langs/grid/index.js
Interpreter
langs/grid/bfgrid.js

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

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