esolang

pRINT

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

Expected: print

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

CharDoes
pPrint a line break, then print
wPrint write
rStart again from the first character, for ever

Everything else does nothing, and only the first line is read.

Example

Expected: write
Expected: write print

Patterns it teaches

Further

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 print

Source

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