MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Parse

Function Parse

parser/parser.go:179–181  ·  view source on GitHub ↗

Parse converts a source input a parsed expression. This function calls ParseWithMacros with AllMacros. Deprecated: Use NewParser().Parse() instead.

(source common.Source)

Source from the content-addressed store, hash-verified

177//
178// Deprecated: Use NewParser().Parse() instead.
179func Parse(source common.Source) (*ast.AST, *common.Errors) {
180 return mustNewParser(Macros(AllMacros...)).Parse(source)
181}
182
183type recursionError struct {
184 message string

Callers 1

TestCopyDeclarationsFunction · 0.92

Calls 3

mustNewParserFunction · 0.85
MacrosFunction · 0.70
ParseMethod · 0.65

Tested by 1

TestCopyDeclarationsFunction · 0.74