218873a0272c87180ae0a2f308938b9ae1b62d18
[rrq/rrqforth.git] / adoc / p_right_bracket.adoc
1 compile.asm:    WORD p_right_bracket,']',fasm
2
3 anchor:p_right_bracket[]
4
5 === Word: ]
6
7 ....
8 Data stack: ( -- )
9 ....
10
11 "]" (right bracket) is a function word that sets the stream evaluation
12 mode to be compiling. In this mode words parsed into CFA pointers
13 which are placed on the heap in the given order, unless the word is
14 flagged as <<p_immediate,IMMEDIATE>> or a <<p_number,NUMBER>>. An
15 immediate word is executed immediately, and a number is parsed and
16 left on the stack.
17
18 Note that a word is parsed as a number only if it is not found in the
19 wordlist; i.e., the word list may contain definitions for numbers.
20
21 ====
22 .Word: ]
23 [caption='Definition concept {counter:exec}: ']
24 ----
25 : ] 1 STATE ! ;
26 ----
27 ====