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.

Arraything

From Esolang
Jump to navigation Jump to search

Arraything is a programming language created while in class. It uses punctuation symbols, and brackets to program.

Commands

Inside Loop Symbols
Symbols Explanation
( Move Right on tape
) Move Left on tape
[ Add Selected Character on tape
] Subtract Selected
{ Multiply Selected
} Divide Selected
< Loop as many times as in the selected cell
> End the loop
, Print Selected as ASCII
. Print Selected as Number
? If Selected Cell is Not 0, Continue; else goto !
! From ?

The Language has a tape and a stack, for reasons.

Outside Loop Symbols
Symbol Definition
Start and End Loop
Start and End Program
( Pop Stack from Varible
) Push Stack from Variable
[ Define Var from Input* (Example: [var)
] Return/Print Var (Example: ]var)
{ Begin Interpreting BF (I ran out of ideas)
} Stop Interpreting BF
< Define Var from Top of Stack
> Define Var from Bottom of Stack
. Print Entire Stack
, Print Enitre Tape

(* you can’t name a variable a number, [var2 will put 2 into var)

Examples

Hello World-ish:

’{>+++++++++[<++++++++>-]<.>++++++[<+++++>-]<-.+++++++..+++.>> 
+++++++[<++++++>-]<++.------------.<++++++++.--------.+++.------.--------. 
>+.>++++++++++.}’

Cat Program:

’[cat ]cat’

An attempt at a true hello world program, basically just screwed up brainflakes:

’”
([[[[[[[[[<)[[[[[[[[(]>),([[[[[[<)[[[[[(]>)],[[[[[[[,,[[[,(( [[[[[[[<)[[[[[[(]>),]]]]]]]]]],)[[[[,]]]],[[[,]]]]]],]]]]]]]], ([,([[[[[[[[[[,”’

We need more examples.