[gforth] / gforth / kernel / doers.fs  

gforth: gforth/kernel/doers.fs

File: [gforth] / gforth / kernel / doers.fs (download)
Revision: 1.1, Thu May 7 22:44:43 1998 UTC (15 years, 1 month ago) by pazsan
Branch: MAIN
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]


CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help