The following commands deal with input/output. Note that, in the online interactive console, input is provided through an explicit "Input" textbox and output is printed below the program.
.
)Pops one value from the stack and pretty-prints it to output.
,
)Reads a valid integer from input and pushes it onto the stack. Returns ฮต if input is empty or there is no valid integer to consume.
๐
)Reads a single character from input and pushes it onto the stack as a single-character string. Returns ฮต if input is empty.
๐
)Reads from input until it encounters a newline or the end of input, pushing the resulting string. Returns ฮต if input is empty. Note that the newline is included in the resulting string and can be removed with Chomp (๐ด)
๐
)Reads all remaining input and pushes it onto the stack as a string. If there's no input, returns ฮต.
๐
)Print every element of the stack, from bottom to top. Does not modify the stack in any way. The exact format of the text printed by this command is subject to change at any time, as it is mainly intended for debugging use.
๐ฑ
)Pops one value from the stack and halts the program with an error. The error will include, in some form, the value which was popped.
๐
)Takes two functions. Invokes the first function. If it returns normally, then control proceeds as normal. If it throws an error, then the second function will be called with the original call stack and the error itself.
Note that, in the case of error, the call stack is rolled back to its state at the time the ๐ command was invoked.
Example:
1 [ 2 "error" ๐ฑ ] [ % . ] ๐ ยซ Prints 1, not 2 ยป