Bilthoven october 2023 - Vocabularies (AN)
VOCABULARIES
Wat zijn vocabularies?
Wat is hun nut?
Hoe gebruik je ze?
Implementatie: waar zit het etiket,
op de verpakking of op de inhoud?
Woordgroepen, met name qua niveau
words & order
De zoekstack of vocabulary stack (search order)
forth forth extra only : forth
tijdelijk vast definities
context current
fresh order
FORTH FORTH EXTRA ONLY : FORTH
Waarom tweemaal FORTH ?
inside order
INSIDE FORTH EXTRA ONLY : FORTH
FRESH ORDER
VOCABULARY
ALSO PREVIOUS
DEFINITIONS
ONLY
only order
extra also order
forth also order
definitions order
: FRESH ( -- )
only
extra also
forth also definitions ;
assembler order
previous order
previous order
previous order
previous order
vp dmp
2100016C: 2 1 3 0 1 0 0 0 | 30102 1| | OK.0
vp v0
.vocs
2 .voc
1 .voc
3 .voc
0 .voc
INSIDE FORTH EXTRA ONLY : FORTH
2 1 3 0 1
vp v0
fresh inside order
50 v0 c! order
: WOEF ." miauw " ;
woef
50 vp c! order
woef
words
fresh inside
: WOEF 50 vp c! ;
order
woef
order
woef
16.6.1 Search-Order words
* 16.6.1.1180 DEFINITIONS
16.6.1.1550 FIND
16.6.1.1595 FORTH-WORDLIST
16.6.1.1643 GET-CURRENT
16.6.1.1647 GET-ORDER
* 16.6.1.2192 SEARCH-WORDLIST
16.6.1.2195 SET-CURRENT
16.6.1.2197 SET-ORDER
16.6.1.2460 WORDLIST
16.6.2 Search-Order extension words
* 16.6.2.0715 ALSO
* 16.6.2.1590 FORTH
* 16.6.2.1965 ONLY
* 16.6.2.1985 ORDER
* 16.6.2.2037 PREVIOUS
zie
https://forth-standard.org/standard/search