evaluator

package
v0.0.0-...-4ee3718 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *resolve

func WrapperFunction

func WrapperFunction(s *ast.StmtFunction[any]) ast.Callable[any]

Types

type Environment

type Environment interface {
	Get(token.Token) any
	Set(token.Token, any)
	Assign(token.Token, any)
	GetAt(distance int, key token.Token) any
	AssignAt(int, token.Token, any)
}

func NewEnvironment

func NewEnvironment(enclosing Environment) Environment

Jump to

Keyboard shortcuts

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