MODULARBALL

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

MODULARBALL is an esoteric programming language based around self-equaling powers (User:Aadenboy/Self-equaling squares).

Modulo and floor

For the purposes of this esolang, is implemented as , and is implemented as .

Balls

The program operates on a set of several "balls". Each ball has a certain value on it (), and a maximum size (). Rolling a ball by some amount () around an axis corresponds to a certain operation. When the direction is counterclockwise, .

Axis Operation
X axis
Y axis
Z axis

Commands

Command Description Parameters
a Returns a real number.
a
The real part.
b Returns an imaginary number.
b
The imaginary part.
ab Returns a complex number.
a
The real part.
b
The imaginary part.
namevaluesize Creates a new ball.
name
The name of the ball, used to refer to it later.
value
The value of the ball.
size
The size of the ball.
name Returns the current value of a ball.
name
The name of the ball.
name Returns the size of a ball.
name
The name of the ball.
nameaxisamount Rotates a ball.
name
The name of the ball.
axis
The axis to rotate around. 1 corresponds to X, 2 to Y, 3 to Z. Use a negative to rotate counterclockwise.
amount
The amount to rotate it by.
name Gets rid of a ball.
name
The name of the ball.
linevalue Jumps to a line if the value is equal to zero.
line
The line to jump to. Treated as a real number.
value
The value to check.
value Outputs a value as a Unicode character. Treated as a real number.
value
The value to output.
Takes input. None.

Examples

Truth machine

◐▹4◠◊
◬▹1
◐▹2◠▹0
◬▹0