MODULARBALL
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. |
|
▸b
|
Returns an imaginary number. |
|
▹a▸b
|
Returns a complex number. |
|
◯name◠value◠size
|
Creates a new ball. |
|
◘name
|
Returns the current value of a ball. |
|
◙name
|
Returns the size of a ball. |
|
◍name◠axis◠amount
|
Rotates a ball. |
|
□name
|
Gets rid of a ball. |
|
◐line◠value
|
Jumps to a line if the value is equal to zero. |
|
◬value
|
Outputs a value as a Unicode character. Treated as a real number. |
|
◊
|
Takes input. | None. |
Examples
Truth machine
◐▹4◠◊ ◬▹1 ◐▹2◠▹0 ◬▹0