Skip to content

PromptScript API


Function: tokenize()

tokenize(source): ILexingResult

Defined in: parser/src/lexer/lexer.ts:19

Tokenize PromptScript source code.

Parameters

source

string

Source code to tokenize

Returns

ILexingResult

Lexing result with tokens and any errors