(*)

From Esolang
Jump to navigation Jump to search

(*) is a esolang invented by User:Yayimhere thats about recursion. Its joke twin is ,(*+)

Memory

Memory is stored in a tape with 3 cells. Each cell is a stack. a maximum of 5 things on each stack

Syntax

The syntax of (*)

Syntax
Symbol Meaning
´ go left on the tape
(…) Add the code inside the brackets (including the brackets themselves) onto the current stack. The code inside will still be ran
[…] run the code in the brackets and then replace the brackets and their content with the top of the stack
$ Pop the top of the current stack
? put user input EOF onto the stack as a string
0-9 put the corresponding number on the stack
_ pop the top of the stack and print as a ascii char(or chars)
+ add the top two values on the stack
^ negate top value on stack
{} (…) But it will only be put on stack if the top of the stack is non 0
C copy the top of the stack
S swap top two values on the stack
L out the value on current stack onto value on the stack to the left

examples

quine(cheating):

(_)

Infinite loop:

(C[])

cat:

?_