MCPcopy
hub / github.com/expr-lang/expr / Parse

Function Parse

parser/parser.go:143–145  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

141}
142
143func Parse(input string) (*Tree, error) {
144 return ParseWithConfig(input, nil)
145}
146
147func ParseWithConfig(input string, config *conf.Config) (*Tree, error) {
148 return new(Parser).Parse(input, config)

Callers 15

EvalFunction · 0.92
TestCheckFunction · 0.92
TestCheck_errorFunction · 0.92
TestCheck_FloatVsIntFunction · 0.92
TestCheck_IntSumsFunction · 0.92
TestVisitor_ConstantNodeFunction · 0.92
TestCheck_AsBoolFunction · 0.92
TestCheck_AsInt64Function · 0.92
TestCheck_NoConfigFunction · 0.92

Calls 1

ParseWithConfigFunction · 0.85

Tested by 15

TestCheckFunction · 0.74
TestCheck_errorFunction · 0.74
TestCheck_FloatVsIntFunction · 0.74
TestCheck_IntSumsFunction · 0.74
TestVisitor_ConstantNodeFunction · 0.74
TestCheck_AsBoolFunction · 0.74
TestCheck_AsInt64Function · 0.74
TestCheck_NoConfigFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…