Command | Effect |
---|---|
! |
duplicate top member of stack |
@ |
pops top of stack and prints that popped number as a character |
# |
pops top of stack and prints that popped number as a number |
$ |
swaps the top two members of the stack |
% |
rotates the stack by 1 to the right (top goes to bottom) |
^ |
increments the top of the stack |
& |
pops top of stack and pushes the number at the popped position |
* |
reads 1 byte of input from STDIN and adds it to top of stack |
( |
open loop |
) |
close loop |
_ |
negate top of stack |
+ |
pops top of stack and adds it to the new top of stack |
? |
prints state info |
All other characters push their values. Popping from an empty stack pushes 0.
- pop top of stack:
!_++