evaluator

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NIL   = &object.Nil{}
	TRUE  = &object.Bool{Value: true}
	FALSE = &object.Bool{Value: false}
)

Functions

This section is empty.

Types

type EvalContext added in v0.0.2

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

func NewContext added in v0.0.2

func NewContext(absPath string) *EvalContext

type Evaluator added in v0.0.2

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

func New added in v0.0.2

func New(ctx *EvalContext) *Evaluator

func (*Evaluator) Eval added in v0.0.2

func (e *Evaluator) Eval(node ast.Node, env *object.Env) object.Object

Jump to

Keyboard shortcuts

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