NoError
Any line of printable characters is a program, and every letter is a little program of its own.
Brain Boy 53, 2024 · Turing complete: unknown · ●●○ moderate · esolangs.org
Tested with 6 known programs · Test method
Run it
The idea
Brain Boy 53 made NoError in 2024 so that every string of the characters 32 to 126 would run. Each punctuation mark is a stack command, digits push themselves, and each letter runs a snippet of NoError from the specification's table of modules. a adds one, r prints the stack as text, e ends the program on a 0, and H prints Hello, World!.
Read the story
So the text Hello, World! is a quine. H prints it, and e finds the 0 that H leaves and ends the program before the other letters run.
The machine
| Char | Does |
|---|---|
0 to 9 | Push the digit |
" | String mode; push every character up to the next ", except l |
$ ' \ ^ | Duplicate, drop, swap, clear |
+ - * / % | Arithmetic on the two top values |
! & < = > | Not, and, compare |
, . | Print a character or a number |
: ; | Read a number or a character |
# | Pop a and b, jump b + 1 ahead if a is 0 |
( ) @ [ ] | Other jumps; ] goes back to the start |
\| | End the program |
_ ` ~ | Random character, random command, random digit | |
| letters | Run the module |
Popping an empty stack gives 0. l inside a string runs its module, which ends string mode and pops back to the last 0. With k, which pushes a 0 and starts a string, that makes a comment.
Example
The Hello, World! pushes the text backwards in string mode, makes each l from a k with a, and prints with…
The Hello, World! pushes the text backwards in string mode, makes each l from a k with a, and prints with the loop ,$!07-#, which is the r module.
The truth machine prints its input and jumps back 7 places while the input is not 0.
The specification says the W module prints !dlroW ,elloH. Its snippet starts with Hek where that would need Hok, and it prints !dlroW ,elleH.
Patterns it teaches
- Every text runs: no printable string is an error.
- Stack machines: one stack that gives 0 when it is empty.
Further
See also
Stack-based
Write your own in Run Convert a program from NoError
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: noerror.
Command line
shib run noerror -e 'H'shib manual noerrorSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/noerror.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org