standardized call-out blocks
[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 .Definition concept for :
18 ****
19 : : doFORTH READ-WORD CREATE TFA>CFA ! ] ;
20 ****
21 ====
22
23 See also <<p_doforth,doFORTH>>, <<p_read_word,READ-WORD>>,
24 <<p_create,CREATE>>, <<p_tfa2cfa,TFA>CFA>>, <<p_put,!>>,
25 <<p_left_bracket,]>> and <<p_semicolon,;>>.