204a66277e
Which are end-of-word movements.
14 lines
475 B
Plaintext
14 lines
475 B
Plaintext
: _pos! 1023 MIN DUP 0< IF DROP 0 THEN EDPOS ! ;
|
|
: $w EDPOS @ BLK( + acc@ 0 DO
|
|
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
|
|
1- BLK( - _pos! ;
|
|
: $W EDPOS @ BLK( + acc@ 0 DO
|
|
1+ BEGIN C@+ WS? NOT UNTIL BEGIN C@+ WS? UNTIL LOOP
|
|
2- BLK( - _pos! ;
|
|
: $b EDPOS @ BLK( + acc@ 0 DO
|
|
1- BEGIN C@- WS? NOT UNTIL BEGIN C@- WS? UNTIL LOOP
|
|
2+ BLK( - _pos! ;
|
|
: $B EDPOS @ BLK( + acc@ 0 DO
|
|
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
|
|
1+ BLK( - _pos! ;
|