X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_colon.adoc;h=86b910449ff0e7ed8dfec00554bd99217b6a624c;hb=39427aee877cab09feea798b146e06dc7bfc25cc;hp=2fb446b8ccb939bf2e9820466b519a55bb872167;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_colon.adoc b/adoc/p_colon.adoc index 2fb446b..86b9104 100644 --- a/adoc/p_colon.adoc +++ b/adoc/p_colon.adoc @@ -1,8 +1,25 @@ -anchor:p_evaluate_stream[] +// compile.asm: WORD p_colon[],':' -Word: : -------- +anchor:p_colon[] ----- -compile.asm: WORD p_colon[],':' ----- +=== Word: : + + +.... +Data stack: ( -- ) Input stream: word +.... + +":" (colon) is a function word that starts a new forth definition. +This includes reading the next word for making a new dictionary entry +and setting evaluation state to compiling mode. + +==== +.Definition concept for : +**** +: : doFORTH READ-WORD CREATE TFA>CFA ! ] ; +**** +==== + +See also <>, <>, +<>, <CFA>>, <>, +<> and <>.