printStack

printStack (--)

Inputs

Outputs

printStack prints the current data stack without modifying it.

Behavior

Example

{} 0 {} [
  "-- original stack --" printCompilerMessage
  7 "hi" FALSE
  printStack

  "-- printStack does not pop --" printCompilerMessage
  printStack

  "-- after one manual pop --" printCompilerMessage
  _:;
  printStack
  _:; _:;
  0
] "main" exportFunction

Expected Output During Compilation

-- original stack --
7
"hi"
FALSE
-- printStack does not pop --
7
"hi"
FALSE
-- after one manual pop --
7
"hi"

See also