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.

Everyman

From Esolang
Jump to navigation Jump to search

Everyman is a stack-based esoteric programming language bg user:Spira..

Commands

Command Description
_ Begins program execution.
0–9 Pushes the corresponding digit onto the stack during initialization.
| Ends stack initialization.
: Duplicates the top stack element.
; Removes duplicate values from the stack.
/ Undoes the previous command
+ Adds the top two stack values if the result is between 0 and 9, inclusive.
- Subtracts the stack operands if the result is between 0 and 9, inclusive.
# Performs a jump.
! Reads a numeric input
$ output the stack sum (without storing this value on the stack)
. Output top value

Examples

XKCD Random Number

4|.

or

2|:+.

or

22|+.

or ...