various fixes to cross refs
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 28 May 2021 04:07:16 +0000 (14:07 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 28 May 2021 04:07:16 +0000 (14:07 +1000)
adoc/p_evaluate_stream.adoc
adoc/p_immediate.adoc
adoc/p_semicolon.adoc [new file with mode: 0644]
reference.adoc
wordindex.adoc

index 2a051af4b1f155e562fb1277d3aafdd212f67a28..ec54379864b17054f94919289861dd045fec5823 100644 (file)
@@ -1,6 +1,6 @@
 // compile.asm:        WORD p_evaluate_stream,'EVALUATE-STREAM'
 
-anchor::p_evaluate_stream[]
+anchor:p_evaluate_stream[]
 
 === Word: EVALUATE-STREAM
 
index 4c4b613824a7e78a6303b9050a414b8b382a2e5c..5e887fee6da6f726b2bb548d7ee5fa1c5913f7cd 100644 (file)
@@ -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 (file)
index 0000000..1818e80
--- /dev/null
@@ -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 <<p_exit,EXIT>>
+
+====
+.Word: :
+[caption='Definition concept {counter:exec}: ']
+----
+: ; IMMEDIATE ' EXIT , ;
+----
+====
+
index d44db8850766be690d664f62f7f0c800c4abc255..4c79c23c1d218ff29ea77be8c65e97e2a8395a03 100644 (file)
@@ -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[]
 
index ba97c693b9d15086ae11802aba0051e2c89f3c46..b3cd87bf9c49a82de8fe5f8339b634ef2c352f97 100644 (file)
 
 == Index of word links
 
-<<p_colon,:>> {nbsp}
+xref:p_colon[:] {nbsp}
 xref:p_comma[', (comma)'] {nbsp}
 xref:p_dot['. (dot)'] {nbsp}
-<<p_double_quote,">> {nbsp}
-<<p_equal,= >> {nbsp}
-<<p_left_bracket,[>> {nbsp}
-<<p_lessthan,<>> {nbsp}
-<<p_lparen,(>> {nbsp}
-<<p_minus, - >> {nbsp}
-<<p_mult,*>> {nbsp}
-<<p_plus,+>> {nbsp}
-<<p_right_bracket,]>>
-
-<<p_0equal,0= >> {nbsp}
-<<p_0less,0<>> {nbsp}
-<<p_Ccomma,C,>> {nbsp}
-<<p_greaterequal,>= >> {nbsp}
-<<p_greaterthan,> >> {nbsp}
-<<p_gtR,>R>> {nbsp}
-<<p_lessequal, \<= >> {nbsp}
-<<p_literal_string,S">> {nbsp}
-<<p_Rget,R@>> {nbsp}
-xref:p_Rgt[R>] {nbsp}
-<<p_unequal, != >>
-
-
-<<data_stack,DATA-STACK>>
-<<return_stack,RETURN-STACK>>
-
-<<p_0branch,0BRANCH>>
-
-<<p_2drop,2DROP>>
-<<p_2dup,2DUP>>
-<<p_2over,2OVER>>
-<<p_2swap,2SWAP>>
-
-<<p_abs,ABS>>
-<<p_allot,ALLOT>>
-<<p_and,AND>>
-<<p_args,ARGS>>
-<<inline_code,[ASM]>>
-
-<<p_base,BASE>>
-<<p_branch,BRANCH>>
-
-<<p_clear_stream,CLEAR-STREAM>>
-<<p_create,CREATE>>
-<<p_current_wordlist,CURRENT-WORDLIST>>
-
-<<p_decimal,DECIMAL>>
-<<p_depth,DEPTH>>
-<<p_digits,DIGITS>>
-<<p_divmod,/MOD>>
-<<p_dodoes,doDOES>>
-xref:p_does[DOES>]
-<<p_dofasm,doFASM>>
-<<p_doforth,doFORTH>>
-<<p_dostring,doSTRING>>
-<<p_dovalue,doVALUE>>
-<<p_dovariable,doVARIABLE>>
-<<p_drop,DROP>>
-<<p_dup,DUP>>
-
-<<p_emit,EMIT>>
-<<p_evaluate_stream,EVALUATE-STREAM>>
-<<p_execute,EXECUTE>>
-<<p_exit,EXIT>>
-
-<<p_false,FALSE>>
-<<p_find,FIND>>
-<<p_forth,FORTH>>
-
-<<p_here,HERE>>
-<<p_hex,HEX>>
-
-<<p_immediate,IMMEDIATE>>
-
-<<p_literal,LIT>>
-
-<<p_malloc,MALLOC>>
-
-<<p_negate,NEGATE>>
-<<p_nip,NIP>>
-<<p_nl,NL>>
-<<p_not,NOT>>
-<<p_number,NUMBER>>
-
-<<p_or,OR>>
-<<p_over,OVER>>
-
-<<p_pad,PAD>>
-<<p_pick,PICK>>
-<<p_program_version,PROGRAM_VERSION>>
-
-<<p_quit,QUIT>>
-
-<<p_read_stream_char,READ-STREAM-CHAR>>
-<<p_read_word,READ-WORD>>
-<<p_roll,ROLL>>
-<<p_rot,ROT>>
-
-<<p_sp,SP>>
-<<p_state,STATE>>
-<<p_stdin,STDIN>>
-<<p_stream,STREAM>>
-<<p_stream_nchars,STREAM-NCHARS>>
-<<p_strncmp,STRNCMP>>
-<<p_swap,SWAP>>
-<<p_system,SYSTEM>>
-
-<<p_tell,TELL>>
-<<p_terminate0,TERMINATE0>>
-<<p_this_word,THIS-WORD>>
-<<p_true,TRUE>>
-<<p_tuck,TUCK>>
-
-<<p_within,WITHIN>>
-<<p_words,WORDS>>
-
-<<p_xor,XOR>>
+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}