1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 14:18:05 +11:00
collapseos/blk/446

12 lines
323 B
Plaintext
Raw Normal View History

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