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.

1͏͢

From Esolang
Jump to navigation Jump to search

1͏͢ is an esoteric programming language made for the purpose of designing adventure games, made by User:AmNow.

1͏͢ is based off of decision shrubs.

Commands

Switch - Case and Jumps

Switch Cases and Jumps are the ONLY way to do control flow.

Syntax:
𝌡 [case name]_[cnd]→
 [body]
⩀ [cnd]→
 [body]
⊭→
 [body]

Node Representation:

     A
    /|\
   B C D

Jumps:

⏧←[case name]

Node Representation:

A<--\
 \  |
  B-/

Variables

To declare a variable:

[variable name]≦[value]

Commands

Command What it does Example Notes
⊞],) Addition ⊞]2,1) Can be used for concatenation.
⊟],) Subtraction ⊟]2,1)
⊠],) Multiplication ⊠]2,1)
⌹],) Division ⌹]2,1) Division by 0 is undefined behavior.
Input inp≦⤝
p]) Output p]inp)
=],) Equality =]inp,1)
<],) Less Than <]1,2)
>],) Greater Than >]2,1)
≠],) Inequality ≠]7,8)

Programs

Truth Machine

INP≦⤝
𝌡 A_=]INP,1)→
 p]INP)
 ⏧←A
⊭→
 p]0)

See also