-
Home
-
API
-
Tomlyn.Parsing
-
SyntaxParser
-
Methods
-
Parse(TomlLexer, Boolean)
Parse(TomlLexer, Boolean) Method
Definition
Parses a TOML payload into a syntax tree.
public static DocumentSyntax Parse(TomlLexer lexer, bool validate = true)
Parameters
- lexer
- TomlLexer
A TOML lexer positioned before the first token.
- validate
- Boolean
When true, runs semantic validation after parsing.
Returns
- DocumentSyntax
- The parsed syntax tree, possibly containing diagnostics.