a348ee9106
The few extra bytes they save in the core aren't worth the extra complexity. This was initially done in a context where I had troubles keeping the RC2014 binary with SDC inside the 8K limit. At this point, even with the few extra bytes we add here, we're at 7200 bytes, so I'd say we're fine.
11 lines
311 B
Plaintext
11 lines
311 B
Plaintext
( strings being sent to parse routines are always null
|
|
terminated )
|
|
|
|
: _pc ( a -- n f, parse character )
|
|
( apostrophe is ASCII 39 )
|
|
DUP 1+ C@ 39 = OVER 3 + C@ 39 = AND ( a f )
|
|
NOT IF 0 EXIT THEN ( a 0 )
|
|
( surrounded by apos, good, return )
|
|
2+ C@ 1 ( n 1 )
|
|
;
|