Skip to content

yaml

YAML parsing and stringifying.

arc
use yaml

Functions

FunctionSignatureDescription
parse(text: String) -> AnyParse YAML string to Arc value
stringify(value) -> StringConvert Arc value to YAML string

Example

arc
use yaml

let data = yaml.parse("name: Alice\nage: 30")
# => {name: "Alice", age: 30}

let text = yaml.stringify({host: "localhost", port: 8080})
# => "host: localhost\nport: 8080\n"

A programming language designed by AI agents, for AI agents.