jp

package
v0.0.4-0...-bd9932a Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ast parsing.ASTNode, value any, bindings binding.Bindings, opts ...Option) (any, error)

func NewCompiler

func NewCompiler(opts ...Option) *compiler

Types

type Compiler

type Compiler interface {
	Compile(string) (Program, error)
	Options() []Option
}

type Option

type Option func(options) options

func WithFunctionCaller

func WithFunctionCaller(functionCaller interpreter.FunctionCaller) Option

type Program

type Program = func(any, binding.Bindings) (any, error)

Jump to

Keyboard shortcuts

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