Sujet : Re: Parsing timestamps?
De : oh2aun (at) *nospam* gmail.com (FFmike)
Groupes : comp.lang.forthDate : 06. Oct 2024, 14:33:53
Autres entêtes
Organisation : novaBBS
Message-ID : <24f3b255de9d943acf76851692ec1724@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
On Sun, 6 Oct 2024 13:08:56 +0000, FFmike wrote:
FlashForth allows only "." as number punctuation.
This was nonsense, NUMBER? never sees the punctuation anyway.
But I added error handling in case someone puts a double number
punctuation in the string.
: /t ( addr len -- )
'source 2@ >r >r >in @ >r
'source 2! 0 >in !
3 for
[char] : word number?
dup 1 = if
drop
else
2 = if drop else drop 0 then
then
next
r> >in ! r> r> 'source 2!
;