7.4. TOML 1.0 parser¶
The TOML module parses TOML 1.0 into the
same JsonValue? tree shape produced by daslib/json, so existing
json_boost accessors (v ?? def, from_JV, etc.) work on TOML
inputs as-is. Date-time tokens are preserved as raw RFC-3339 strings
since JSON has no native date type.
All functions and symbols are in “toml” module, use require to get access to it.
require daslib/toml
7.4.1. Parsing¶
- read_toml(text: string; error: string&): JsonValue?¶
Reads TOML 1.0 from text. On parse failure returns null and
populates error; on success returns the root table as a
JsonValue? (_object variant).
- Arguments:
text : string implicit
error : string&