PIO
Three commands, and none of them is useful. The language says so itself.
2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
PIO is a joke language from 2024, and its commands are the three letters of its name. O prints a complaint, P stops the run with a rude error, and I runs the next line of the program. Every other character is ignored.
Read the story
Only the first line runs at the start. A later line runs only when an I asks for it, and each line runs at most once. When no line is left, I complains about input errors instead.
The machine
| Command | Does |
|---|---|
I | Runs the next line that has not run yet, or prints I hate input errors! |
O | Prints Oh dear! No useful programs here! |
P | Stops with the error Peeing on the floor? Ridiculous! Clean up your mess! |
Each message ends with a line feed. The empty program prints No code, no bananas!.
Example
The quine starts with O, and nothing after it is a command.
The quine starts with O, and nothing after it is a command. The empty program is a special case.
The first I runs the second line, and the second I finds no line left.
Patterns it teaches
- Quine: a quine for free, because the output is the one sentence that starts with O.
Further
See also
Also in Jokes
Write your own in Run Convert a program from PIO
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: pio.
Command line
shib run pio -e 'Oh dear! No useful programs here!'shib manual pioSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/pio.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org