Skip to content

UnifiedParsingOptions

Defined in: packages/engine/src/types/ParsingResult.ts:84

How a document should be parsed.

optional includeDiagnostics?: boolean;

Defined in: packages/engine/src/types/ParsingResult.ts:100

Collect a stage-by-stage trace. For tooling only: it is not free.


optional includeHighlights?: boolean;

Defined in: packages/engine/src/types/ParsingResult.ts:98

Include syntax-highlighting spans.


optional includeLineInfo?: boolean;

Defined in: packages/engine/src/types/ParsingResult.ts:96

Include line offsets and positions. Costs a little to compute.


inputType: "code" | "raw" | "markdown";

Defined in: packages/engine/src/types/ParsingResult.ts:92

How to read the input.

markdown respects headings, comments and code fences, and looks for inline solves. raw treats every line as an expression. code is for input already known to be expressions.


optional localeCode?: string;

Defined in: packages/engine/src/types/ParsingResult.ts:94

Locale for keywords and number formatting. Defaults to English.