Numbers

From Esolang
Jump to navigation Jump to search

Numbers is a stack-based esoteric programming language created by User:Xorol. An interpreter and instruction list made by Xorol can be found here.

Example programs

Hello, world!

The Hello World! program pushes each letter's corresponding ASCII values onto the stack, then prints the stack as a string.

20 72 20 101 20 108 20 108 20 111 20 32 20 87 20 111 20 114 20 108 20 100 20 33 33

Truth-machine

The truth-machine takes input from the user, if it is a "1" it outputs "1"s indefinitely, if it's a "0" it outputs a singular "0"

34 26 24 40 42 9 30 ~ 30 42 9

Digital root calculator

It takes input from the user, and calculates the digital root.

34 18 30

Cat program

A cat program outputs whatever the user inputs.

36 33

An infinite version:

36 33 42 1

Deadfish Interpreter

20 0 20 100 35 11 24 40 42 17 20 1 21 11 42 44 20 5 25 11 24 40 42 31 20 1 21 10 42 44 20 6 25 11 24 40 42 42 30 42 44 26 12 42 3