Skip to content

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 ​

PropertyTypeDescriptionDefined in
hasErrorsbooleanWhether 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
valueRosettaExpressionThe root expression node (best-effort when hasErrors is true).packages/core/src/api/parse-expression.ts:19

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.