Handbook
Glossary
yaml-docs> ( str -- arr )
YAML serialization
Prev:
yaml> ( str -- obj )
Next:
Mapping between Factor and YAML types
Vocabulary
yaml
Inputs
str
a
string
Outputs
arr
an
array
Word description
Deserializes the YAML formatted string into a Factor array. Each document becomes an element of the array.
See also
yaml>
Definition
USING:
destructors
kernel
sequences
yaml.ffi
yaml.private
;
IN:
yaml
:
yaml-docs>
( str -- arr )
[
init-parser
[
YAML_STREAM_START_EVENT
expect-event
]
[
[
?parse-yaml-doc
]
2curry
[
]
produce
nip
]
2bi
]
with-destructors
;