User:H1dro0091!/Sandbox/PolarBF
< User:H1dro0091! | Sandbox
PolarBF is a brainfuck-inspired esoteric programming language made by H1dro.
Language overview
Unlike brainfuck, PolarBF uses a circular(ish?) tape with two pointer position values: rotation (in degrees 1-360°) and height (1-128 + 2 extra-memory rings whose cells can hold up to 360 instead of 255). In total: 46,800 cells.
Here are the functions!
Command | Description |
---|---|
*
|
Jump to top ring |
>
|
Rotate the pointer 1° clockwise |
<
|
Rotate the pointer 1° counterclockwise |
^
|
Move the pointer 1 ring up |
v
|
Move the pointer 1 ring down |
+
|
Increment the memory cell at the pointer |
-
|
Decrement the memory cell at the pointer |
.
|
Output the character signified by the cell at the pointer |
,
|
Get input as an ASCII code and store it in the cell at the pointer |
[
|
Jump past the matching ] if the cell at the pointer is 0
|
]
|
Jump back to the matching [ if the cell at the pointer is nonzero
|
;
|
Comment |
?
|
Write current pointer height to the memory cell at the pointer |
#
|
Write current pointer rotation to current cell. If not on extra memory, will write to next available extra memory cell |
@
|
Write rotation of highest-value cell in current ring to the current memory cell. If not on extra memory, will write to next available memory cell |
&
|
Switch between normal memory and extra memory rings |