chickadee » yaml » yaml-load

yaml-load inputprocedure

Parse a YAML representation into an object. input may be a string or input port.

Example:

#;1> (import yaml)
#;2> (yaml-load "--- foo")
"foo"
#;3> (yaml-load "--- :bar")
bar
#;4> (yaml-load "--- ")
#<sql-null#sql-null-type>
#;5> (yaml-load "--- ['foo', ['bar']]")
("foo" ("bar"))
#;6> (yaml-load "--- {foo: bar}")
(("foo" . "bar"))
#;7> (yaml-load "--- {foo: bar, bar: baz}")
(("foo" . "bar") ("bar" . "baz"))
#;8>