Sujet : Re: Parsing timestamps?
De : oh2aun (at) *nospam* gmail.com (FFmike)
Groupes : comp.lang.forthDate : 06. Oct 2024, 14:08:56
Autres entêtes
Organisation : novaBBS
Message-ID : <a3365e0c6c574a54f4caa31c3f5ba4f2@www.novabbs.com>
References : 1
User-Agent : Rocksolid Light
In FlashForth I usually do this.
FlashForth allows only "." as number punctuation.
: /t ( addr len -- )
'source 2@ >r >r >in @ >r
'source 2! 0 >in !
3 for
[char] : word number? 1 <> if drop 0 then
next
r> >in ! r> r> 'source 2!
;
s" 12:33:44" /t . . .
44 33 12 ok