Handbook
Glossary
parse-hex ( s -- n )
Vocabulary
simple-flat-file
Inputs
s
an
object
Outputs
n
an
object
Definition
USING:
kernel
math.parser
splitting
;
IN:
simple-flat-file
:
parse-hex
( s -- n )
dup
[
"0x"
?head
[
"U+"
?head
[
"Missing 0x or U+"
throw
]
unless
]
unless
hex>
]
when
;