.:iI1l!¡
Brainfuck written only in symbols made of dots and lines.
Username1234, 2022 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Username1234 made .:iI1l!¡ in 2022. It is brainfuck with each of the eight commands swapped for a symbol made of dots and lines, like the name itself. Moving is . and :, adding and taking away are i and I, a loop is l and 1, printing is | and reading is !.
Read the story
One thing changes. Brainfuck lets any other character stand in a program as a comment. A comment needs its own mark, from ¡ to the next ¡, or to the end of the program when no second ¡ comes. The specification gives a grammar, and in it nothing else may stand between commands but spaces, tabs and line breaks.
The machine
| Symbol | Brainfuck | Does |
|---|---|---|
. | > | Move right |
: | < | Move left |
i | + | Add 1 |
I | - | Take 1 away |
l | [ | Skip past the matching 1 if the cell is 0 |
1 | ] | Go back to the matching l if it is not |
| | . | Print the cell |
! | , | Read a byte |
¡ | A comment, up to the next ¡ |
The tape runs without end both ways, and its cells are bytes that wrap. The specification leaves the end of the input open; ! stores 0 there.
Example
The Hello, World! leans on cells that wrap.
The Hello, World! leans on cells that wrap. It adds 1 and opens a loop that at once takes 2 away, so the cell goes past 0 to 255. The cat reads, and prints and reads again while the cell is not 0.
The truth machine prints its input, then takes 2 away from it in a loop while a counter in the next cell goes up by 1. On 0, which is 48, the input reaches 0 after 24 turns and the run ends. On 1, which is 49, it never does. After 256 turns the counter wraps to 0 and the input cell is back at 49, so a print loop lands on it and prints 1 forever.
Patterns it teaches
- Turing tarpit: brainfuck under another alphabet.
- Encoding tricks: commands told apart by dots and strokes.
Further
See also
.:iI1l!¡ builds on Brainfuck.
Brainfuck derivatives
Cell-based
Write your own in Run Convert a program from .:iI1l!¡
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: ii1l.
Command line
shib run ii1l -e '!l|!1' --input 'cat'shib manual ii1lSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/ii1l.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org