Position
Jump to navigation
Jump to search
Position is a stack-based esolang created by WreckingGames, where almost every important command changes depending on its position in the code.
Commands
Command | Explanation |
---|---|
x | Push the x value of this character to the stack. |
+ | Increment the top of the stack. |
- | Decrement the top of the stack. |
. | Pop the top of the stack, print the result. |
^ | Print the line with the y value of the x position of this character. |
* | Pop the top of the stack. |
: | Duplicate the top of the stack. |
# | Get input from the user, if it is a number push it on the stack, else push the ascii value of it to the stack. |
$ | Pop the bottom of the stack, push it back at the top. |
> | Run the line with the y value of the x position of this character if the top of the stack is not zero. |
% | Skip the next line. |
Example Programs
Hello, world!
^ Hello, World!
Truth-machine
# > % x.> x.
Cat program
1 line:
#.
until 0:
#:.>
Add two Numbers, then output
## $+$-> $.