opyeb tomllab

tomllab · Guides

TOML grammar and conversion guides

Five guides: grammar basics, dates and times, tables and arrays of tables, JSON and YAML conversion, lint diagnostics

Five guides: grammar basics, dates and times, tables and dotted keys, the traps of JSON and YAML conversion, and how to read lint results.

Grammar

GrammarTOML basics: keys, strings, numbers and booleansOnly the rules needed to write one value correctly, including why 0.1.0 is an error and 1. is not a float.TypesTOML dates and times: four distinct typesFour types hide behind similar-looking values. The difference is whether there is an offset and whether there is a time.

Structure

StructureTOML tables, dotted keys and arrays of tablesFour ways to build structure, and the exact points where 'cannot be defined twice' fires.

Conversion and lint

ConversionTOML, JSON and YAML: what a conversion losesThe three formats have different type systems. Here is what changes silently and what the tool warns about.DiagnosticsReading TOML errors by line and columnWhat each message points at, and what to change at that spot.

Ready to parse your own file? Open the workbench.

Open the tool