Skip to content

ParseResult

PromptScript API


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

Result of parsing PromptScript source code.

Properties

ast

ast: Program | null

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

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


comments

comments: readonly Comment[]

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

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


errors

errors: ParseError[]

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

List of errors encountered during parsing.