User:KapitanGamer/Sandbox

From Esolang
Jump to navigation Jump to search

!*/ is an esolang created by User:KapitanGamer, which is distinguished by the fact that you can add, multiply and divide a variable... but you cannot subtract. Due to this fact, only one variable, no conditionals and no loops make !*/ total. (Digit is number from 1 to 3 in !*/)

First command

First character of program initializes one and only variable n.

Initializes n to...
! ...1.
/ or @ ...2.
* ...3.
? ...a random digit between 1 and 3.
^ ...a digit from standard input.

If the first character is not in the table, the program throws an error.

Next commands

The next characters of the program are commands operating on n.

Commands
! Add 1 to n.
/ Divide n by 2.
* Multiply n by 3.
? Search the code for the next tag and use it, where m is equal to a random digit between 1 and 3.
^ Search the code for the next tag and use it, where m is equal to a digit from input.
_ Round down n.
& Write n in output as number.
$ Write n in output as ASCII character.

Tags

*****/!!!!!!!!!!!!_$ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!$ !!!!!!!$$ !!!$ //!!!!!_$ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!$ !!!!!!!!!!!!!!!!!!!!!!!!$ !!!$ //*!!!!!!!!!!!!!!!!!!!!!!!!_$ //*!!!!!!!!!!!!!!!!!!!!_$