Skip to content

CanonicalParseResult

PromptScript API


Defined in: parser/src/parse.ts:55

Result of parsing PromptScript into the immutable canonical AST.

Properties

ast

ast: CanonicalProgram | null

Defined in: parser/src/parse.ts:57

The canonical AST, or null if parsing failed with tolerant=false.


comments

comments: readonly Comment[]

Defined in: parser/src/parse.ts:61

Comments in source order. They are not part of the AST.


errors

errors: ParseError[]

Defined in: parser/src/parse.ts:59

List of errors encountered during parsing.