Print Function Deluxe

From Esolang
Jump to navigation Jump to search

Print Function Deluxe is an esolang made by Cortex designed to have very small code and many useful commands, but the only way to see what it actually did through the whole thing is with the p command.

Commands

Character What it does
p Print 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 36 number.
^ Similar to $, but use the accumulator instead.
= If the accumulator is even, go forward [the next character as a base 36 number] lines. Otherwise, proceed.
+ Increment the accumulator by the next character as a base 36 number.
- +, but decrement the accumulator instead.
* Double the accumulator.
? Set the accumulator to a random number.
& Set the accumulator to the next character as a base 36 number.
@ Go to line [the next character as a base 36 number].
. End the program (it automatically ends at the end of the program, too).

Examples

Hello, World!

pHelplo,p Woprldp!  

Cat program

A one-time cat program is the following:

$p

An infinitely repeating version comprises:

$p@1

Truth-machine

$&=1@3
p0  .
p1  @3

Interpreter

  • Common Lisp implementation of the Print Function Deluxe programming language.