Function: parseOrThrow()¶
parseOrThrow(
source,options?):Program
Defined in: parser/src/parse.ts:152
Parse PromptScript source code into an AST, throwing on error.
Parameters¶
source¶
string
The PromptScript source code to parse
options?¶
Parsing options
Returns¶
The parsed Program AST
Throws¶
If parsing fails