∞D

From Esolang
Jump to navigation Jump to search

∞D is a programming language that uses a ∞D cube for data and programming

Commands

>D move in the Dth dimension forwards
<D do that but backwards
%C write C on that place as an instruction
# run the code

Instructions

Instructions are ran the way it is facing

>D rotate in the Dth dimension right
<D do that but left
+ add one to internal var
- subtract one from internal var
* place the internal var here, aka making it external, vvv
also makes a new internal var, when stepped on, swap the vvv
new internal var and external var, aka making external be vvv
internal and internal be external
?D if the internal var is 0, continue, else rotate right in the Dth dimension right
!D do that but left
@ output the internal var

Example

%+
>1
%+
>1
%+
>1
%@
#
execution, IV is internal var, O is output
IV = 0
IV = 1
IV = 2
IV = 3
O = 3