dontru / Labyrinth--

A two-dimensional programming language that transcompiles to brainf**k

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Labyrinth--

Labyrinth-- is a two-dimensional programming language that transcompiles to brainfuck.

Commands

The language consists of five commands.

Character Meaning
# wall
  space
A start, entrance
B end, goal
\n new line

Instruction pointer

The instruction pointer is trying to move from point A to point B using right-hand rule. The transcompiled code is determined by the movement of instruction pointer.

(n-2) moves in the same direction (if n > 2)
➡️ >
⬅️ <
⬆️ +
⬇️ -
T-junction (if instruction pointer hits the wall)
➡️ [
⬅️ ]
⬆️ .
⬇️ .
four-way junction
#️⃣ ,

First move

The first move is first legal move of: ⬆️, ➡️, ⬇️, ⬅️.

About

A two-dimensional programming language that transcompiles to brainf**k

License:MIT License


Languages

Language:Rust 100.0%