The letter p prints the word print, and that is enough to count as an interpreter.
SpaceByte, 2023 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
SpaceByte made pRINT in 2023 to be the language that is easiest to write an interpreter for. The only required command is p, which prints print. An interpreter may add w, which prints write, and r, which starts the program over.
Read the story
esolangs.org collects interpreters for it in C#, Java, C++, C, Batch, brainfuck and Mascarpone, and they do not all agree. This implementation follows the main one, in C#.
The machine
| Char | Does |
|---|---|
p | Print a line break, then print |
w | Print write |
r | Start again from the first character, for ever |
Everything else does nothing, and only the first line is read.
Example
Patterns it teaches
- Every text runs: any line is a program, and most print nothing.
Further
See also
Also in Jokes
Write your own in Run Convert a program from pRINT
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: print.
Command line
shib run print -e 'p'shib manual printSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/print.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org