We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Print

From Esolang
Jump to navigation Jump to search
Not to be confused with pRINT.

Print is an esolang made by A designed to make Print Function Deluxe programs (slightly) shorter.

Commands

If operators are provided less operands than what they need, spaces will be padded on the end.

Character What it does
p Print and returns the next 3 characters. Prints numbers in base 10.
$ When before a function character, use a value from input as the argument for it.
% Set the accumulator to the next 3 characters as a base 255 number.
^ Similar to $, but use the accumulator instead.
= If the operand is even, go forward [the next character as a base 255 number] lines. Lines are counted from 0. Otherwise, proceed.
+ Increment the second operand by the next character as a base 255 number.
- +, but decrement the accumulator instead.
* Double the operand.
? Return a random number.
& Set the accumulator to the next character as a base 255 number.
@ Go to line [the next returned character as a base 255 number]; line numbers start from 0.
NL Newline, end the program

Examples

Hello, World!

pHelplo,p Woprldp!

Cat program

$p

Truth-machine

=$&1p0
@p1