Skip to content

parse()

PromptScript API


parse(source, options?): ParseResult

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

Parse PromptScript source code into the mutable legacy AST.

The returned graph is detached from the canonical parser output so existing consumers may continue to mutate it during the compatibility window.

Parameters

source

string

options?

ParseOptions = {}

Returns

ParseResult