nanos world API Reference Unofficial documentation
Static function Shared

TOML.Parse

Returns a value representing the decoded TOML string

Syntax

Lua
TOML.Parse(value)

Parameters

Name Type Default Description
value string the TOML that will become a table

Returns

  • any the TOML in table

Examples

Parses a TOML string into a Lua table
local decoded_value = TOML.Parse("my_table = [ 1, 2, 3 ]")