rune-langium / core/src / ExpressionParseResult
Interface: ExpressionParseResult
Defined in: packages/core/src/api/parse-expression.ts:17
Result of parsing a bare Rune DSL expression snippet.
Remarks
value is always present — the parser performs best-effort error recovery — so callers MUST check hasErrors before trusting the tree (mirrors ParseResult's contract).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
hasErrors | boolean | Whether the parse completed without errors. | packages/core/src/api/parse-expression.ts:30 |
lexerErrors | { column?: number; line?: number; message: string; offset: number; }[] | Lexer errors encountered during tokenization. | packages/core/src/api/parse-expression.ts:21 |
parserErrors | { column?: number; line?: number; message: string; offset?: number; }[] | Parser errors encountered during parsing. | packages/core/src/api/parse-expression.ts:23 |
value | RosettaExpression | The root expression node (best-effort when hasErrors is true). | packages/core/src/api/parse-expression.ts:19 |