ForthVM.Words.Flow (ForthVM v0.5.0) View Source
Flow words
Link to this section Summary
Functions
do: ( end_count count -- ) start loop declaration
begin: ( -- ) start loop declaration
j: ( -- data ) copy data from return stack after LOOP's definition to the data stack
r@: ( -- data )copy the top of the return stack to the data stack
i: ( -- count ) copy the top of a LOOP's return stack to the data stack
loop: ( -- ) keep processing do_tokens till count < end_count, each step incrementing count by 1
r: ( data -- ) move the top of the data stack to the return stack
r>: ( -- data ) move the top of the return stack to the data stack
+loop: ( inc -- ) keep processing do_tokens till count < end_count, incrementing count by top value on the data stack
until: (bool -- ) keep processing untill contition is truthly
Link to this section Functions
do: ( end_count count -- ) start loop declaration
begin: ( -- ) start loop declaration
copy_r_loop_to_d(tokens, data_stack, return_stack, dictionary, meta)
View Sourcej: ( -- data ) copy data from return stack after LOOP's definition to the data stack
r@: ( -- data )copy the top of the return stack to the data stack
i: ( -- count ) copy the top of a LOOP's return stack to the data stack
loop: ( -- ) keep processing do_tokens till count < end_count, each step incrementing count by 1
r: ( data -- ) move the top of the data stack to the return stack
r>: ( -- data ) move the top of the return stack to the data stack
+loop: ( inc -- ) keep processing do_tokens till count < end_count, incrementing count by top value on the data stack
until: (bool -- ) keep processing untill contition is truthly