Parses a TOML payload into a syntax tree.
public static DocumentSyntax Parse(TomlLexer lexer, TomlSerializerOptions options, bool validate = true)
A TOML lexer positioned before the first token.
Serializer options supplying shared behaviors such as MaxDepth.
When true, runs semantic validation after parsing.