3a5acecd2ec6695b980c14b449dd32279b5f4044
[rrq/rrqforth.git] / adoc / p_colon.adoc
1 // compile.asm: WORD p_colon[],':'
2
3 anchor:p_colon[]
4
5 === Word: :
6
7
8 ....
9 Data stack: ( -- )    Input stream: word
10 ....
11
12 ":" (colon) is a function word that starts a new forth definition.
13 This includes reading the next word for making a new dictionary entry
14 and setting evaluation state to compiling mode.
15
16 ====
17 .Word: :
18 [caption='Definition concept {counter:exec}: ']
19 ----
20 : : doFORTH READ-WORD CREATE TFA>CFA ! ] ;
21 ----
22 ====
23
24 See also <<p_doforth,doFORTH>>, <<p_read_word,READ-WORD>>,
25 <<p_create,CREATE>>, <<p_tfa2cfa,TFA>CFA>>, <<p_put,!>>,
26 <<p_left_bracket,]>> and <<p_semicolon,;>>.