We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
GolferDream
Jump to navigation
Jump to search
GolferDream by User:Cordership is purely made for golfing.
Syntax
| Command | Definition |
|---|---|
| , | Pop top of main stack and output as ASCII. |
| . | Pop top of main stack and output as integer. |
| ~ | Push character from user into the main stack. |
| & | Push integer from user into the main stack. |
| 0-9 | Push the corresponding number into the main stack. |
| " | Toggle stringmode. |
| [] | Peek top of main stack, while its value is nonzero... |
| {} | Peek top of main stack, while its value is zero... |
| ()() | Peek top of main stack, if value = 0 do in the first (), else do in the second one. |
| :;:; | Peek top of main stack, if value != 0 do in the first :;, else do in the second one. |
| @ | Pop top of main stack and push it into the box. |
| ` | Pop the box and push it into the main stack. |
| + | Pop values a and b, push the result of a+b into the main stack. |
| - | Pop values a and b, push the result of b-a into the main stack. |
| * | Pop values a and b, push the result of a*b into the main stack. |
| / | Pop values a and b, push the result of b/a, rounded down into the main stack. |
| % | Pop values a and b, push the result of b%a into the main stack. |
| ^ | Pop values a and b, push the result of b^a into the main stack. |
| \ | Swap top main stack values. |
| # | Duplicate top main stack value. |
| $ | Pop top of main stack and discard. |
| aA | Infinite loop. |
| bB | While main stack has atleast 1 element... |
| c | Reverse the entire main stack. |
| dD | Peek into the box, while value != 0... |
| eE | Peek into the box, while value = 0... |
| o | Pop everything in the main stack and print them as integers. |
| p | Pop everything in the main stack and print them as ASCII. |
| r | Pop top of main stack, assign its name as n, push an integer value in [0,n) inclusive. |
| O | Pop top of main stack and push it into the control stack. |
| P | Pop top of control stack and push it into the main stack. |
Programs
Hello, World!
"!dlroW ,olleH"p
Cat program
~[,~]
Truth-machine
&(0.)(a1.A)
A+B problem
&&+.
FizzBuzz
45*5*@0e1+#3%($#5%("zzuBzziF"p)("zziF"p))($#5%("zzuB"p)($#o))`1-@E
4-function calculator
"/4 *3 -2 +1 :rotaluclaC maerDrefloG"p&&&#()1-(+.)1-(-.)1-(*.)1-(/.)
Disan count
0&@d#2%($#."neve si "p)(`)1-@1+D