mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-28 14:48:05 +11:00
bd38d80f9c
and renamed it "Core words". Also, reworded the presentation.
14 lines
246 B
Plaintext
14 lines
246 B
Plaintext
: '? WORD FIND ;
|
|
: '
|
|
'? (?br) [ 4 , ] EXIT
|
|
LIT< (wnf) FIND DROP EXECUTE
|
|
;
|
|
: ROLL
|
|
DUP NOT IF EXIT THEN
|
|
1+ DUP PICK ( n val )
|
|
SWAP 2 * (roll) ( val )
|
|
SWAP DROP
|
|
;
|
|
: 2OVER 3 PICK 3 PICK ;
|
|
: 2SWAP 3 ROLL 3 ROLL ;
|