`LML
One counter, one list, one print. Letters are counted from a as 1, and 0 is a space.
Saketh Suresh, 2018 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 4 known programs · Test method
Run it
The idea
Saketh Suresh made `LML in 2018 and says it is pronounced elemel. It has 8 commands. Two change a counter X and one sets it back to 0. Three add X to a list called LI, as a number, a small letter or a capital. One adds a line of input, and ; joins the whole list and prints it. There are no loops and no jumps, so a program runs straight through once. Every other character is ignored, and the specification writes its comments between the commands.
The machine
| Command | Does |
|---|---|
+ - | Add 1 to X, take 1 from X |
R | Set X to 0 |
< | Add X to LI as a number |
( | Add X to LI as a small letter, 1 for a and 26 for z, 0 for a space |
[ | The same, as a capital |
: | Add a line of input to LI |
; | Join all of LI and print it |
Example
The first program adds the number 6, a space, an a and two more letters b.
The first program adds the number 6, a space, an a and two more letters b.
Hello World climbs and falls through the alphabet on one counter. H is 8, e is 5 and W is 23.
The greeting puts Hi and a space in front of a name it reads.
Further
See also
`LML builds on Brainfuck.
Brainfuck derivatives
Write your own in Run Convert a program from `LML
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: lml.
Command line
shib run lml -e '++++++++[+(R(:;' --input 'Grace'shib manual lmlSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/lml.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org