mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 09:48:05 +11:00
17 lines
409 B
Plaintext
17 lines
409 B
Plaintext
: RLATOM ( a o ol -- a+n )
|
|
ROT ( o ol a )
|
|
DUP @ ( o ol a n )
|
|
DUP 0x24 = IF
|
|
DROP 2+ ( o ol a+2 )
|
|
ROT ROT 2DROP ( a ) EXIT
|
|
THEN
|
|
ROT ( o a n ol )
|
|
< IF ( under limit, do nothing )
|
|
NIP ( a )
|
|
ELSE ( o a )
|
|
TUCK @ ( a o n )
|
|
-^ ( a n-o )
|
|
OVER ! ( a )
|
|
THEN
|
|
ASKIP ;
|