version 1.2, 1996/09/10 16:08:38
|
version 1.3, 1996/09/23 08:52:48
|
Line 32 lastxt >does-code
|
Line 32 lastxt >does-code
|
constant no-compilation-does-code |
constant no-compilation-does-code |
constant no-interpretation-does-code |
constant no-interpretation-does-code |
|
|
: create-interpret/compile ( -- ) |
: create-interpret/compile ( "name" -- ) \ gforth |
0 0 interpret/compile: |
0 0 interpret/compile: |
here lastxt interpret/compile-comp ! |
here lastxt interpret/compile-comp ! |
no-compilation-does-code here does-code! |
no-compilation-does-code here does-code! |
Line 53 constant no-interpretation-does-code
|
Line 53 constant no-interpretation-does-code
|
: (interpretation>) ( -- ) |
: (interpretation>) ( -- ) |
lastxt interpret/compile-int r@ fix-does-code ; |
lastxt interpret/compile-int r@ fix-does-code ; |
|
|
: interpretation> ( -- orig colon-sys ) |
: interpretation> ( compilation. -- orig colon-sys ) \ gforth |
POSTPONE (interpretation>) POSTPONE ahead |
POSTPONE (interpretation>) POSTPONE ahead |
dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict |
dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict |
|
|
: <interpretation ( orig colon-sys -- ) |
: <interpretation ( compilation. orig colon-sys -- ) \ gforth |
?struc POSTPONE exit |
?struc POSTPONE exit |
POSTPONE then ; immediate restrict |
POSTPONE then ; immediate restrict |
|
|
: (compilation>) ( -- ) |
: (compilation>) ( -- ) |
lastxt interpret/compile-comp r@ fix-does-code ; |
lastxt interpret/compile-comp r@ fix-does-code ; |
|
|
: compilation> ( -- orig colon-sys ) |
: compilation> ( compilation. -- orig colon-sys ) \ gforth |
POSTPONE (compilation>) POSTPONE ahead |
POSTPONE (compilation>) POSTPONE ahead |
dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict |
dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict |
|
|
comp' <interpretation drop Alias <compilation immediate restrict |
comp' <interpretation drop |
|
Alias <compilation ( compilation. orig colon-sys -- ) \ gforth |
|
immediate restrict |
|
|
\ example |
\ example |
\ : constant ( n "name" -- ) |
\ : constant ( n "name" -- ) |