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.

-2

From Esolang
Jump to navigation Jump to search

-2 is an esoteric programming language made by User:Dragoneater67 in 2026. It partially inspired by six seven and was made to force Esofish implementors to implement floating point number esolangs.

Overview

The program is a tab-separated sequence of instructions executed right-to-left in an implicit infinite loop. There is a queue of arbitrary precision floating point numbers. Dequeueing an empty queue results in halting.

Instruction table
Instruction Description
number Enqueue number, it is represented in decimal with . as the floating point.
o Dequeue a number and output it.
x Dequeue a number and execute the rest of the program as the esolang with the name equal to the number.
{code} Dequeue a number and run code if it is an integer.

Examples

XKCD Random Number

0.1	{o}	4.0	1.0

See also