1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-14 19:28:06 +11:00
collapseos/blk/369
Virgil Dupras c668433c5d wip
2020-05-25 07:29:47 -04:00

13 lines
241 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 )
NIP ;
: 2OVER 3 PICK 3 PICK ;
: 2SWAP 3 ROLL 3 ROLL ;