From Esolang
Jump to navigation Jump to search

⇡ is an esolang by User:Hammy that has one purpose: to have every unicode arrow be a command.

"A language where flow control, assignment, calculation and basically everything is done using unicode arrows"

List of ideas#Looks Like

Commands

This section is still a work in progress. It may be changed in the future.
Command Meaning
x → y assign the value y to variable x, if x exists. if it doesn't, raise the "NoVarFound" error
x ← create the variable x if it doesn't exist. if it does, reset that variable
x ↑ send the variable x to heaven, deleting it and outputting it
x ↓ send the variable x to hell, deleting it and NOT outputting it
↔Stringy↔ a string. the reason we don't use double quotes is because this is arrow-based
↕ Comment does... NOTHING!!!!!
+
-
*
/
or
and
<
=
>
false
true
↤ x ↧ if x:
↦ ↧ else:
↥ x ↧ elif x:
↨ a LOOOOOONG comment ↨ Multiline comment, like ></*>cooking fysh<*/>< in Fysh or /* hi */ in javascript
go back to the beginning of this program/loop
escape a loop
↬ x ↧ while x:
input

Like some other programming languages, 0 is false and 1 is true, so using true for 1 is acceptable.

So, + is the same as OR but if both is 1 it's a special value?

User:Hammy

Examples

Cat

a ←
a → ↭
a ↑

Hello world

a ←
a → ↔Hello, world!↔
a ↑

Truth machine

a ←
a → ↭
↤ a ↟ ↢ ↧
 a ↑
↬ a ↟ ↣ ↧
 b ←
 b → a
 b ↑