Parses a TOML payload from a TextReader into a syntax tree.
public static DocumentSyntax Parse(TextReader reader, string? sourceName = null, bool validate = true)
The text reader.
An optional source name used in diagnostics.
When true, runs semantic validation after parsing.