Scroll

From Esolang
Jump to navigation Jump to search

Scroll is an esolang created by User:WreckingGames. it was made for no reason.

it uses a string for data.

Commands

Command Action
[ Remove the last value of the string and add it to n. If the last value of the string is the last value of n, skip to the matching ].
] Goto the matching [ if the last value of the string isn't the last value of n, else remove the last value of n.
$ Put the last value of the string at the start of the string.
* Discard the last value of the string.

Everything else adds itself to the string.

When the program ends, the string is printed.

Examples

Hello, world

Hello, World!

Quine

q

due to not being able to add any of the commands to the string, you are not able to create a quine that uses actual commands.

Truth-machine

(input)0[1]

Increment binary value

!(binary value)0[*0$]*1![$]*

External resources

Python interpreter by MathR: https://github.com/theMathR/Scroll