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

Function Run

expr.go:264–266  ·  view source on GitHub ↗

Run evaluates given bytecode program.

(program *vm.Program, env any)

Source from the content-addressed store, hash-verified

262
263// Run evaluates given bytecode program.
264func Run(program *vm.Program, env any) (any, error) {
265 return vm.Run(program, env)
266}
267
268// Eval parses, compiles and runs given input.
269func Eval(input string, env any) (any, error) {

Callers 15

ExampleCompileFunction · 0.92
ExampleEnvFunction · 0.92
ExampleAsKindFunction · 0.92
ExampleAsBoolFunction · 0.92
ExampleAsIntFunction · 0.92
ExampleAsInt64Function · 0.92
ExampleAsFloat64Function · 0.92
ExampleOperatorFunction · 0.92
ExampleConstExprFunction · 0.92

Calls 1

RunFunction · 0.92

Tested by 15

ExampleCompileFunction · 0.74
ExampleEnvFunction · 0.74
ExampleAsKindFunction · 0.74
ExampleAsBoolFunction · 0.74
ExampleAsIntFunction · 0.74
ExampleAsInt64Function · 0.74
ExampleAsFloat64Function · 0.74
ExampleOperatorFunction · 0.74
ExampleConstExprFunction · 0.74