Galang!!
Jump to navigation
Jump to search
Galang!! is a stack-based esolang created by User:Random.esotera. It is a more refined version of CATASTROPHICA, created with a better understanding of memory systems.
Commands
Function | Definition |
---|---|
/text/ | Comments. |
! | Push the value specified after onto the stack. !! pushes 2 of the value specified, !!! pushes 3, and so on. |
/ | Pops the top value of the stack and returns it. Returns 0 if the stack is empty. Adding * after / pops the second to top value, adding ** pops the third and so on. |
, | Outputs the top value of the stack and pops it. |
. | Returns user input as numbers. |
` | Returns user input as characters. |
+ | Increments the value specified before by 1. Adding * after + decreases the increment by powers of 10. |
- | Decrements the value specified before by 1. Adding * after + decreases the decrement by powers of 10. |
'text' | Defines string values. |
"numbers" | Defines ASCII values. |
] | Jump to the corresponding [ if the top value of the stack is non-zero. |
[ | Jump past the corresponding ] if the top value of the stack is zero. |
Examples
Cat program
!`,
Hello, World!
!'Hello, World!',
Truth machine
!.[!!/,]
Input 0 or 1.
Looping counter
!!1[[!'*',!/-]/!!/+!"10",]