From: Ralph Ronnquist Date: Fri, 28 May 2021 04:07:16 +0000 (+1000) Subject: various fixes to cross refs X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=63e908439d935d062f041f16e4fa29283d8f26ca;p=rrq%2Frrqforth.git various fixes to cross refs --- diff --git a/adoc/p_evaluate_stream.adoc b/adoc/p_evaluate_stream.adoc index 2a051af..ec54379 100644 --- a/adoc/p_evaluate_stream.adoc +++ b/adoc/p_evaluate_stream.adoc @@ -1,6 +1,6 @@ // compile.asm: WORD p_evaluate_stream,'EVALUATE-STREAM' -anchor::p_evaluate_stream[] +anchor:p_evaluate_stream[] === Word: EVALUATE-STREAM diff --git a/adoc/p_immediate.adoc b/adoc/p_immediate.adoc index 4c4b613..5e887fe 100644 --- a/adoc/p_immediate.adoc +++ b/adoc/p_immediate.adoc @@ -1,6 +1,6 @@ // compile.asm: WORD p_immediate,'IMMEDIATE',fasm,IMMEDIATE -anchor::p_immediate[] +anchor:p_immediate[] === Word: IMMEDIATE diff --git a/adoc/p_semicolon.adoc b/adoc/p_semicolon.adoc new file mode 100644 index 0000000..1818e80 --- /dev/null +++ b/adoc/p_semicolon.adoc @@ -0,0 +1,22 @@ +// compile.asm: WORD p_semicolon[],';',,IMMEDIATE + +anchor:p_semicolon[] + +=== Word: ; + + +.... +Data stack: ( -- ) +.... + +";" (semi-colon) is a function word that ends a new forth definition +by means of adding an <> + +==== +.Word: : +[caption='Definition concept {counter:exec}: '] +---- +: ; IMMEDIATE ' EXIT , ; +---- +==== + diff --git a/reference.adoc b/reference.adoc index d44db88..4c79c23 100644 --- a/reference.adoc +++ b/reference.adoc @@ -22,6 +22,7 @@ include::adoc/p_literal.adoc[] include::adoc/p_literal_string.adoc[] include::adoc/p_number.adoc[] include::adoc/p_right_bracket.adoc[] +include::adoc/p_semicolon.adoc[] include::adoc/p_state.adoc[] include::adoc/p_this_word.adoc[] diff --git a/wordindex.adoc b/wordindex.adoc index ba97c69..b3cd87b 100644 --- a/wordindex.adoc +++ b/wordindex.adoc @@ -1,123 +1,124 @@ == Index of word links -<> {nbsp} +xref:p_colon[:] {nbsp} xref:p_comma[', (comma)'] {nbsp} xref:p_dot['. (dot)'] {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -<> - -<> {nbsp} -<> {nbsp} -<> {nbsp} -<= >> {nbsp} -< >> {nbsp} -<R>> {nbsp} -<> {nbsp} -<> {nbsp} -<> {nbsp} -xref:p_Rgt[R>] {nbsp} -<> - - -<> -<> - -<> - -<> -<> -<> -<> - -<> -<> -<> -<> -<> - -<> -<> - -<> -<> -<> - -<> -<> -<> -<> -<> -xref:p_does[DOES>] -<> -<> -<> -<> -<> -<> -<> - -<> -<> -<> -<> - -<> -<> -<> - -<> -<> - -<> - -<> - -<> - -<> -<> -<> -<> -<> - -<> -<> - -<> -<> -<> - -<> - -<> -<> -<> -<> - -<> -<> -<> -<> -<> -<> -<> -<> - -<> -<> -<> -<> -<> - -<> -<> - -<> +xref:p_double_quote["] {nbsp} +xref:p_equal[= ] {nbsp} +xref:p_left_bracket[[] {nbsp} +xref:p_lessequal[<] {nbsp} +xref:p_lessthan[<] {nbsp} +xref:p_lparen[(] {nbsp} +xref:p_minus[ - ] {nbsp} +xref:p_mult[*] {nbsp} +xref:p_plus[+] {nbsp} +xref:p_right_bracket[']'] {nbsp} + +xref:p_0equal[0=] {nbsp} +xref:p_0less[0<] {nbsp} +xref:p_Ccomma[C,] {nbsp} +xref:p_greaterequal[>= ] {nbsp} +xref:p_greaterthan[>] {nbsp} +xref:p_gtR[>R] {nbsp} +xref:p_lessequal[<=] {nbsp} +xref:p_literal_string[S"] {nbsp} +xref:p_Rget[R@] {nbsp} +xref:ef:p_Rgt[R>] {nbsp} +xref:p_unequal[!=] {nbsp} + + +xref:data_stack[DATA-STACK] {nbsp} +xref:return_stack[RETURN-STACK] {nbsp} + +xref:p_0branch[0BRANCH] {nbsp} + +xref:p_2drop[2DROP] {nbsp} +xref:p_2dup[2DUP] {nbsp} +xref:p_2over[2OVER] {nbsp} +xref:p_2swap[2SWAP] {nbsp} + +xref:p_abs[ABS] {nbsp} +xref:p_allot[ALLOT] {nbsp} +xref:p_and[AND] {nbsp} +xref:p_args[ARGS] {nbsp} +xref:inline_code[[ASM]] {nbsp} + +xref:p_base[BASE] {nbsp} +xref:p_branch[BRANCH] {nbsp} + +xref:p_clear_stream[CLEAR-STREAM] {nbsp} +xref:p_create[CREATE] {nbsp} +xref:p_current_wordlist[CURRENT-WORDLIST] {nbsp} + +xref:p_decimal[DECIMAL] {nbsp} +xref:p_depth[DEPTH] {nbsp} +xref:p_digits[DIGITS] {nbsp} +xref:p_divmod[/MOD] {nbsp} +xref:p_dodoes[doDOES] {nbsp} +xref:p_does[DOES>] {nbsp} +xref:p_dofasm[doFASM] {nbsp} +xref:p_doforth[doFORTH] {nbsp} +xref:p_dostring[doSTRING] {nbsp} +xref:p_dovalue[doVALUE] {nbsp} +xref:p_dovariable[doVARIABLE] {nbsp} +xref:p_drop[DROP] {nbsp} +xref:p_dup[DUP] {nbsp} + +xref:p_emit[EMIT] {nbsp} +xref:p_evaluate_stream[EVALUATE-STREAM] {nbsp} +xref:p_execute[EXECUTE] {nbsp} +xref:p_exit[EXIT] {nbsp} + +xref:p_false[FALSE] {nbsp} +xref:p_find[FIND] {nbsp} +xref:p_forth[FORTH] {nbsp} + +xref:p_here[HERE] {nbsp} +xref:p_hex[HEX] {nbsp} + +xref:p_immediate[IMMEDIATE] {nbsp} + +xref:p_literal[LIT] {nbsp} + +xref:p_malloc[MALLOC] {nbsp} + +xref:p_negate[NEGATE] {nbsp} +xref:p_nip[NIP] {nbsp} +xref:p_nl[NL] {nbsp} +xref:p_not[NOT] {nbsp} +xref:p_number[NUMBER] {nbsp} + +xref:p_or[OR] {nbsp} +xref:p_over[OVER] {nbsp} + +xref:p_pad[PAD] {nbsp} +xref:p_pick[PICK] {nbsp} +xref:p_program_version[PROGRAM_VERSION] {nbsp} + +xref:p_quit[QUIT] {nbsp} + +xref:p_read_stream_char[READ-STREAM-CHAR] {nbsp} +xref:p_read_word[READ-WORD] {nbsp} +xref:p_roll[ROLL] {nbsp} +xref:p_rot[ROT] {nbsp} + +xref:p_sp[SP] {nbsp} +xref:p_state[STATE] {nbsp} +xref:p_stdin[STDIN] {nbsp} +xref:p_stream[STREAM] {nbsp} +xref:p_stream_nchars[STREAM-NCHARS] {nbsp} +xref:p_strncmp[STRNCMP] {nbsp} +xref:p_swap[SWAP] {nbsp} +xref:p_system[SYSTEM] {nbsp} + +xref:p_tell[TELL] {nbsp} +xref:p_terminate0[TERMINATE0] {nbsp} +xref:p_this_word[THIS-WORD] {nbsp} +xref:p_true[TRUE] {nbsp} +xref:p_tuck[TUCK] {nbsp} + +xref:p_within[WITHIN] {nbsp} +xref:p_words[WORDS] {nbsp} + +xref:p_xor[XOR] {nbsp}