adding some documentation
[rrq/rrqforth.git] / adoc / p_right_bracket.adoc
1 anchor:p_right_bracket[]
2
3 Word: ]
4 -------
5
6 ----
7 compile.asm:    WORD p_right_bracket,']',fasm
8 ----
9
10 "]" (right bracket) is function word that sets the stream evaluation
11 mode to be compiling. In this mode, words are not executed immediately
12 after parsing but rather having their CFA placed on the heap. However,
13 words marked as IMMEDIATE (flags&1 != 0) are executed as if
14 interpreting mode. Likewise for numbers.
15
16 .Execution semantics expressed in RRQFORTH
17 ====
18 : [ IMMEDIATE 1 STATE ! ;
19 ====
20
21