[gforth] / gforth / compat / vocabulary.fs  

gforth: gforth/compat/vocabulary.fs

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

\ vocabulary

\ This file is in the public domain. NO WARRANTY.

\ The program uses the following words
\ from CORE :
\ : Create , DOES> @ >r dup 0= and r> swap ; 
\ from CORE-EXT :
\ nip 
\ from BLOCK-EXT :
\ \ 
\ from EXCEPTION :
\ throw 
\ from FILE :
\ ( 
\ from SEARCH :
\ wordlist get-order set-order 

: vocabulary ( -- )
    wordlist create ,
does> ( -- )
    \ replaces the wordlist on the top of the search list with the
    \ vocabulary's wordlist
    @ >r
    get-order dup 0= -50 and throw \ search-order underflow
    nip r> swap
    set-order ;


CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help