evaluator

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyNodeInput         = errors.New("empty node input")
	ErrUnexpectedNodeType     = errors.New("unexpected node type")
	ErrUnexpectedObjectType   = errors.New("unexpected object type")
	ErrUnexpectedOperatorType = errors.New("unexpected operator type")
	ErrIdentifierNotFound     = errors.New("identifier not found")
	ErrNotAFunction           = errors.New("not a function")
	ErrIndexOutOfRange        = errors.New("index out of range")
	ErrUnhashableType         = errors.New("unhashable type")
	ErrKeyNotFound            = errors.New("key not found")
)

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	Eval(node ast.Node) (object.Object, error)
	// contains filtered or unexported methods
}

An interpreter/evaluator interface

func New

func New(env object.Environment) Evaluator

Jump to

Keyboard shortcuts

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