Skip to content

parse

parse(source, config?): ParseResult

parse parses source text with the optional provided parser configuration.

Diagnostics accompany the AST rather than being thrown, matching the environment frontend and cel-go: a malformed expression is an expected result when the source comes from a user.

string

ParserConfig = {}

ParseResult