interpreter

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFunctionCaller

func NewFunctionCaller(funcs ...functions.FunctionEntry) *functionCaller

Types

type FunctionCaller

type FunctionCaller interface {
	CallFunction(string, []interface{}) (interface{}, error)
}

type Interpreter

type Interpreter interface {
	Execute(parsing.ASTNode, interface{}) (interface{}, error)
}

This is a tree based interpreter. It walks the AST and directly

interprets the AST to search through a JSON document.

func NewInterpreter

func NewInterpreter(data interface{}, caller FunctionCaller, bindings binding.Bindings) Interpreter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL