Envy

From Esolang
Jump to navigation Jump to search
ENVY
Paradigm(s) imperative
Designed by User:Las-r
Appeared in 2026
Computational class Turing complete
Major implementations GitHub
File extension(s) .nvy

ENVY is a 2D-stack-based esolang made by Nayif Ehan in 2026.

Better documentation can be found on GitHub.

Concepts

Envy is a 2D-stack-based esoteric programming language.

Stack

The 2D stack is infinite in every direction. Each cell in the stack holds an unsigned 8-bit integer (0-255). At the beginning of the program, every cell is set to 0.

Pointer

The pointer faces toward one of the four cardinal directions and can move forward or backward. At the beginning of the program, the pointer is facing north.

Hand

The hand is register which holds an unsigned 8-bit value.

Syntax

Symbol Action
w Set pointer direction to north
s Set pointer direction to south
a Set pointer direction to east
d Set pointer direction to west
q Rotate pointer counterclockwise
e Rotate pointer clockwise
. Move pointer forward
, Move pointer backward
( Set hand to cell at pointer
) Set cell at pointer to hand and and set hand to 0
+ Increment hand
- Decrement hand
@ Output ASCII character of hand
[ Continue running code if hand > 0, otherwise skip to ]
] Do nothing (Marks end of [)
{ Do nothing (Marks start for })
} Jump back to the last { if hand > 0)

Examples

Hello World

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@+++++++++++++++++++++++++++++@+++++++@@+++@-------------------------------------------------------------------@------------@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@--------@+++@------@--------@-------------------------------------------------------------------@