Languages · Spatial (2D and up)2003
PATH
brainfuck drawn on a grid. Arrows turn only when the cell is not 0, so a loop is a closed path with an exit.
2003 · esolangs.org
Tested with 3 examples and 3 known programs · Hello World on Try It Online: identical · Test method
Run it
Example
Expected output
(nothing)
Output
What it is
PATH: $ start heading right, # end, } { move, / \ mirrors, ^ < > v turn when the cell is nonzero, ! jump one
How its machine works
Its machine has a two-dimensional program.
Examples
Example
Expected output
H
Output
Example
Expected output
abc
Output
Quirks
- A run stops after 3,000,000 steps.
See also
Two-dimensional languages
PuzzlangTrackGame of LifeBrainloller2LHalf-Broken Car in Heavy TrafficBeeswaxYABALLAll 138 two-dimensional languages
Cell-based
Write your own in Run Convert a program from PATH
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: path.
Command line
shib run path -e '$,.,.,.#' --input 'abc'shib manual pathSource
- 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