klyn.io.toml.TOML.parse
method
public static parse(text as String) as SortedMap<String, Object> throws TOMLParseException:
Description

Parses TOML text into its natural Klyn representation.

Parameters
ParameterDescription
textComplete TOML document encoded as a Klyn string.
Returns

Root TOML table.

Throws
  • TOMLParseException if the document is invalid.
Example
document = TOML.parse("enabled = true")
assert document["enabled"] == true