IsThatAMotherFrickingSpecificAnimeReferenceLang
Six commands, each of them YES or NO, said one to three times. Its Hello World is 407 lines long.
SoicBR, 2020 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
SoicBR made the language on 4 December 2020, ITAMFSARL for short. Its syntax is a reference to a specific Japanese animation, so every command is "YES" or "NO", once, twice or three times. The specification gives two reasons for it. In a video, Truttle1 said his own Hello World might turn out the longest ever made, and asked nobody to take that as a challenge. SoicBR took it as one, and also wanted to say that his language is a reference to a specific anime.
The machine
All memory is one accumulator from 0 to 255, which wraps both ways. There is one command a line, and a line that is not a command is not executed. After the last line the program starts again at the first, so running off the end never stops it.
| Line | Does |
|---|---|
YES YES YES | Add 1 |
NO NO NO | Take 1 away |
NO NO | Print the accumulator as a character |
YES YES | Read a character into the accumulator |
YES | End the program |
NO | Jump to the last instruction where the accumulator was 0 |
The specification leaves two things open. NO jumps to the last command that started while the accumulator was 0 and runs it again, and YES YES ends the run once the input is used up. With one byte of memory a program is a finite state machine, so the language is not Turing complete.
Example
The cat reads a character, prints it and starts again from the top.
The cat reads a character, prints it and starts again from the top.
Reading a and adding 1 prints b.
The Hello World prints Hello, world! and a line feed. It walks the accumulator to each next character the shorter way round, 72 steps up to H, 29 up to e, 67 down from o to the comma and 87 up from the space to w. That makes 201 lines up, 191 down, 14 prints and one YES.
See also
Also in Jokes
Write your own in Run Convert a program from IsThatAMotherFrickingSpecificAnimeReferenceLang
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: isthatamotherfrickingspecificanimereferencelang.
Command line
shib run isthatamotherfrickingspecificanimereferencelang -e 'YES YES
NO NO' --input 'meow'shib manual isthatamotherfrickingspecificanimereferencelangSource
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org