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

Link to this function

cr(tokens, data_stack, return_stack, dictionary, meta)

View Source

cr: ( -- ) emits a carriage return

Link to this function

dot(tokens, list, return_stack, dictionary, meta)

View Source

.: ( x -- ) pops and prints the literal value on the top of the data_stack

Link to this function

dump_data_stack(tokens, data_stack, return_stack, dictionary, meta)

View Source

.s: ( -- ) prints the whole data_stack, without touching it

Link to this function

emit(tokens, list, return_stack, dictionary, meta)

View Source

emit: ( c -- ) pops and prints (without cr) the binary of an ascii value on the top of the data_stack

Link to this function

fetch_puts(tokens, data_stack, return_stack, dictionary, meta)

View Source

"?": ( var -- ) fetch a variable value and prints it

Link to this function

inspect(tokens, list, return_stack, dictionary, meta)

View Source

inspect: ( x -- ) pops and prints the inspected value on the top of the data_stack

Link to this function

puts(tokens, list, return_stack, dictionary, meta)

View Source

puts: ( x -- ) pops and prints the literal value on the top of the data_stack

Link to this function

set_io_device(tokens, list, return_stack, dictionary, meta)

View Source

set-io-device: ( name -- ) set the current IO device to the value on the top of the data_stack