Function: parseFile()¶
parseFile(
filePath,options):ParseResult
Defined in: parser/src/parse.ts:180
Parse a PromptScript file from disk.
Parameters¶
filePath¶
string
Path to the .prs file
options¶
Omit\<ParseOptions, "filename"> = {}
Parsing options (filename defaults to filePath)
Returns¶
ParseResult with AST and any errors