File:  [gforth] / gforth / compat / vocabulary.fs
Revision 1.1: download - view: text, annotated - select for diffs
Wed Apr 29 17:09:47 1998 UTC (24 years ago) by anton
Branches: MAIN
CVS tags: v0-7-0, v0-6-2, v0-6-1, v0-6-0, v0-5-0, v0-4-0, HEAD
tables are in the image again
added assert.fs defer.fs exception.fs vocabulary.fs to the compat directory

    1: \ vocabulary
    2: 
    3: \ This file is in the public domain. NO WARRANTY.
    4: 
    5: \ The program uses the following words
    6: \ from CORE :
    7: \ : Create , DOES> @ >r dup 0= and r> swap ; 
    8: \ from CORE-EXT :
    9: \ nip 
   10: \ from BLOCK-EXT :
   11: \ \ 
   12: \ from EXCEPTION :
   13: \ throw 
   14: \ from FILE :
   15: \ ( 
   16: \ from SEARCH :
   17: \ wordlist get-order set-order 
   18: 
   19: : vocabulary ( -- )
   20:     wordlist create ,
   21: does> ( -- )
   22:     \ replaces the wordlist on the top of the search list with the
   23:     \ vocabulary's wordlist
   24:     @ >r
   25:     get-order dup 0= -50 and throw \ search-order underflow
   26:     nip r> swap
   27:     set-order ;
   28: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>