1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-05 06:28:06 +11:00
collapseos/blk/358

12 lines
309 B
Plaintext
Raw Normal View History

( strings being sent to parse routines are always null
terminated )
: (parsec) ( a -- n f )
( apostrophe is ASCII 39 )
2020-05-26 10:16:07 +10:00
DUP 1+ C@ 39 = OVER 3 + C@ 39 = AND ( a f )
NOT IF 0 EXIT THEN ( a 0 )
( surrounded by apos, good, return )
2020-05-26 10:16:07 +10:00
2+ C@ 1 ( n 1 )
;