Handbook
Glossary
parse-key/value ( sequence-parser -- key value )
Vocabulary
html
.
parser
.
private
Inputs
sequence-parser
an
object
Outputs
key
an
object
value
an
object
Definition
USING:
kernel
sequences.parser
unicode
;
IN:
html.parser.private
:
parse-key/value
( sequence-parser -- key value )
[
read-key
>lower
]
[
skip-whitespace
"="
take-sequence
]
[
swap
[
read-value
]
[
drop
dup
]
if
]
tri
;