ForthVM.Words.IO (ForthVM v0.5.0) View Source
IO words
Link to this section Summary
Functions
cr: ( -- ) emits a carriage return
.: ( x -- ) pops and prints the literal value on the top of the data_stack
.s: ( -- ) prints the whole data_stack, without touching it
emit: ( c -- ) pops and prints (without cr) the binary of an ascii value on the top of the data_stack
"?": ( var -- ) fetch a variable value and prints it
inspect: ( x -- ) pops and prints the inspected value on the top of the data_stack
puts: ( x -- ) pops and prints the literal value on the top of the data_stack
set-io-device: ( name -- ) set the current IO device to the value on the top of the data_stack
Link to this section Functions
cr: ( -- ) emits a carriage return
.: ( x -- ) pops and prints the literal value on the top of the data_stack
dump_data_stack(tokens, data_stack, return_stack, dictionary, meta)
View Source.s: ( -- ) prints the whole data_stack, without touching it
emit: ( c -- ) pops and prints (without cr) the binary of an ascii value on the top of the data_stack
"?": ( var -- ) fetch a variable value and prints it
inspect: ( x -- ) pops and prints the inspected value on the top of the data_stack
puts: ( x -- ) pops and prints the literal value on the top of the data_stack
set-io-device: ( name -- ) set the current IO device to the value on the top of the data_stack