2020-04-25 21:54:07 -04:00
|
|
|
( strings being sent to parse routines are always null
|
|
|
|
terminated )
|
|
|
|
|
|
|
|
: (parsec) ( a -- n f )
|
|
|
|
( apostrophe is ASCII 39 )
|
2020-05-02 20:32:20 -04:00
|
|
|
DUP C@ 39 = OVER 2+ C@ 39 = AND ( a f )
|
|
|
|
NOT IF 0 EXIT THEN ( a 0 )
|
2020-04-25 21:54:07 -04:00
|
|
|
( surrounded by apos, good, return )
|
|
|
|
1+ C@ 1 ( n 1 )
|
|
|
|
;
|
|
|
|
|