version 1.26, 1997/06/23 16:57:02
|
version 1.27, 1997/07/06 15:55:23
|
Line 78 decimal
|
Line 78 decimal
|
: [compile] ( compilation "name" -- ; run-time ? -- ? ) \ core-ext bracket-compile |
: [compile] ( compilation "name" -- ; run-time ? -- ? ) \ core-ext bracket-compile |
comp' drop compile, ; immediate |
comp' drop compile, ; immediate |
|
|
\ MARKER 17may93jaw |
|
|
|
\ : marker here last @ create , , DOES> dup @ last ! cell+ @ dp ! ; |
|
\ doesn't work now. vocabularies? |
|
|
|
\ CONVERT 17may93jaw |
\ CONVERT 17may93jaw |
|
|
: convert ( ud1 c-addr1 -- ud2 c-addr2 ) \ core-ext |
: convert ( ud1 c-addr1 -- ud2 c-addr2 ) \ core-ext |
Line 170 variable span ( -- a-addr ) \ core-ext
|
Line 165 variable span ( -- a-addr ) \ core-ext
|
2 pick swap /string type |
2 pick swap /string type |
nip span ! ; |
nip span ! ; |
|
|
|
\ marker 18dec94py |
|
|
|
\ Marker creates a mark that is removed (including everything |
|
\ defined afterwards) when executing the mark. |
|
|
|
: marker, ( -- mark ) here dup A, |
|
voclink @ A, voclink |
|
BEGIN @ dup WHILE dup 0 wordlist-link - @ A, REPEAT drop |
|
udp @ , ; |
|
|
|
: marker! ( mark -- ) |
|
dup @ swap cell+ |
|
dup @ voclink ! cell+ |
|
voclink |
|
BEGIN |
|
@ dup |
|
WHILE |
|
over @ over 0 wordlist-link - ! |
|
swap cell+ swap |
|
REPEAT |
|
drop voclink |
|
BEGIN |
|
@ dup |
|
WHILE |
|
dup 0 wordlist-link - rehash |
|
REPEAT |
|
drop |
|
@ udp ! dp ! ; |
|
|
|
: marker ( "mark" -- ) |
|
marker, Create A, |
|
DOES> ( -- ) |
|
@ marker! ; |
|
|