adding execution control words
[rrq/rrqforth.git] / adoc / p_end.adoc
1 // control.asm: WORD p_begin,'BEGIN',fasm
2
3 anchor:p_begin[]
4
5 === Word: BEGIN
6
7 ....
8 Data stack: Compiling: ( a 0 * -- )
9 ....
10
11 "END" is an immediate function word that is used together with
12 <<p_begin,BEGIN>>, <<p_ifbreak,IFBREAK>> and <<p_ifagain,IFAGAIN>> to
13 implement structured execution control. END processes the data stack
14 to resolve any dangling <<p_ifbreak,IFBREAK>> branch offset for the
15 block of the matching <<p_begin,BEGIN>>.