Skip to content

tokenize()

PromptScript API


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