File:  [gforth] / gforth / kernel / doers.fs
Revision 1.1: download - view: text, annotated - select for diffs
Thu May 7 22:44:43 1998 UTC (25 years, 4 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
Added missing doers.fs and getdoers.fs



\ If we leave out the compiler we need the runtime code for our defining
\ words. This file defines the defining words without the
\ interpretative/compiling part.

has? compiler 0= [IF]

\ fillers for interpreter only mode
.( Do-Fillers: )

: (does>) ;    

doer? :dofield 0= [IF] .( DOFIELD )
| : (Field)  DOES> @ + ;
[THEN]

doer? :dodefer 0= [IF] .( DODEFER )
| : Defer ( "name" -- ) DOES> @ execute ;
[THEN]

| : 2Constant ( w1 w2 "name" -- ) \ double
    DOES> ( -- w1 w2 )
        2@ ;

doer? :docon 0= [IF] .( DOCON )
| : (Constant)  DOES> @ ;
[THEN]

doer? :douser 0= [IF] .( DOUSER )
| : User DOES> @ up @ + ;
[THEN]

doer? :dovar 0= [IF] .( DOVAR )
| : Create ( "name" -- ) \ core
    DOES> ;

.( .)
[THEN]


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