interpreter

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvironment

func NewEnvironment() map[string]interface{}

Types

type BuiltIn

type BuiltIn struct {
	Body func(argv []interface{}) interface{}
}

type Callable

type Callable struct {
	Arity int
	Args  []string
	Body  []expr.Expr
}

type ICallable

type ICallable interface {
	// contains filtered or unexported methods
}

type Interpreter

type Interpreter struct {
	// contains filtered or unexported fields
}

func NewInterpreter

func NewInterpreter() Interpreter

func (*Interpreter) Interpret

func (interpreter *Interpreter) Interpret(exprs []expr.Expr) (interface{}, error)

Jump to

Keyboard shortcuts

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