Skip to content

toml

TOML parsing and stringifying.

arc
use toml

Functions

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

Example

arc
use toml

let config = toml.parse("[server]\nhost = \"localhost\"\nport = 8080")
# => {server: {host: "localhost", port: 8080}}

let text = toml.stringify({title: "My App", version: "1.0"})

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