Contains both the parsed AST and any diagnostics emitted during parsing.
The AST is always produced, even when diagnostics are present — the parser
is lenient and recovers from errors.
Example
import { parse } from"@wdprlib/parser";
constresult = parse("**bold** and //italic//"); console.log(result.ast.elements); // AST nodes console.log(result.diagnostics); // [] (no issues)
The result of parsing a Wikidot markup string.
Contains both the parsed AST and any diagnostics emitted during parsing. The AST is always produced, even when diagnostics are present — the parser is lenient and recovers from errors.
Example
Since
2.0.0