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.

!.$

From Esolang
Jump to navigation Jump to search

!.$ is a very simple 2D esoteric programming language designed by User:Mutasimos in 2026.

Memory

The memory this language uses is just a stack.

Syntax

A program is written in a 2D grid.

Command Meaning
* Start an instruction pointer there, moving rightwards
! [] -> [true]
. [] -> [false]
$ [a b c] -> [b] if c is true, [a b c] -> [a] otherwise
# [a] -> []
? [a] -> [] and turn the instruction pointer clockwise if a is true, counter-clockwise otherwise
< Set instruction pointer direction to left
> Set instruction pointer direction to right
^ Set instruction pointer direction to up
v Set instruction pointer direction to down
+ Stop program

Examples

Infinite loop

.>v
 ^<