SeeLlash
Two numbers. One you change, one you can only swap with, and a loop that runs as many times as the second one says.
AnotherUser05, 2025 · Turing complete: unknown · ●○○ easy · esolangs.org
Tested with 4 known programs · Test method
Run it
The idea
AnotherUser05 made SeeLlash in 2025 after brainfuck, and wrote its interpreter before its specification. There is no tape. There are two values, Current, which + and - change, and Stored, which can only be filled from Current, emptied into it or swapped with it. Stored's job is to count. A fixed loop ( ... ) runs its body Stored times.
Read the story
The interpreter on the specification is in Python and prints with print(), so every character and every number it prints ends with a line feed. Hello World comes out one letter per line.
The machine
| Command | Does |
|---|---|
+ - | Add or take 1 from Current |
~ | Move Current into Stored, leaving 0 |
` | Move Stored into Current, leaving 0 | |
^ | Swap Current and Stored |
, ; | Read a line as a character or as a number into Current |
. : | Print Current as a character or as a number, then a line feed |
[ ] | Loop while Current is not 0 |
( ) | Run the body Stored times |
The fixed loop counts from Stored minus 1 down to 0, so its body runs at least once, even when Stored is 0. Every other character is ignored.
Example
Hello World makes each letter with a fixed loop.
Hello World makes each letter with a fixed loop. ++++++++~ puts 8 in Stored, and (+++++++++) adds 9 eight times, which is 72, an H. Each later letter starts from the one before. ~ keeps it in Stored, a few + make a count, ^ swaps the two back, and the loop adds or takes away.
A+B reads two numbers, one per line. The first goes to Stored, and the loop adds 1 to the second that many times.
The fixed repeating output prints 1 as many times as it reads, then 0.
The truth machine prints 0 once, or 1 forever. The Fibonacci, +[^:(+)], never stops either. It swaps the last two numbers each turn and adds one onto the other with the fixed loop.
Patterns it teaches
- Counter machines: two counters, and one of them is reached only through a swap.
Further
See also
Also in Turing tarpits
Write your own in Run Convert a program from SeeLlash
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: seellash.
Command line
shib run seellash -e ';[:]:' --input '0'shib manual seellashSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/seellash.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org