BrainofGolf
Jump to navigation
Jump to search
BrainofGolf is an golfing-esolang with bf syntax created by User:Ractangle
Commands
Brainfuck
The Brainfuck commands can be used for stack management (except for the move the pointer and the increment or decrement commands)
BrainofGolf
Command | It's action |
---|---|
" | Turns everything into a string until encounters another "
|
: | Same as the . command but it prints the top value of the stack as a number
|
m | moves the first item on the stack to the top |
0-9 | Pushes the number that the cursor is currently pointing at |
^ | Ends program |
[ | The Brainfuck loop command (although it actually jumps to the ] if the current element at the top is zero or if the stack is empty. which basicly means that it's skiping the loop entirely)
|
; | Same thing as the , command but stores the input as a number
|
+ | Takes two cells, adds the together and pops the unoperated element |
- | Same thing as the + command but does suntraction instead
|
= | Duplicates the top of the element on the stack |
~ | Pop the top element on the stack |
Examples
Hello, world!
"Hello, world!"[m.]^
Truth-machine
;[:]^