toml

Parse TOML configuration files and strings into XS maps.

Import

import toml

Functions

toml.parse(s: str) -> map

Parse a TOML string and return a map. Supports strings, integers, floats, booleans, arrays, and sections (as nested maps). Unknown or malformed entries are silently skipped.

Examples

scratch.xs