01-stack-inspection.fth 291 B

12345678910111213141516
  1. \ print the current stack using .s
  2. \ for example:
  3. 1 2 .s
  4. \ --> <2> 1 2 ok
  5. \ it lists the number of items on the stack in angle
  6. \ brackets, followed by the content of the stack, and then
  7. \ ok
  8. \ print the top element of the stack
  9. 1 2 3 .
  10. \ --> 3 ok
  11. 1 2 3 . . .
  12. \ --> 1 2 3 . . . 3 2 1 ok