evaluator

package
v0.0.0-...-56748ea Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GREEN = "\033[32m"
View Source
const RESET = "\033[0m"

Variables

View Source
var (
	TRUE  = &object.Boolean{Value: true}
	FALSE = &object.Boolean{Value: false}
	NULL  = &object.Null{}
)

Constants to save memory

Functions

func Eval

func Eval(node ast.Node, env *object.Environment) object.Object

Function to evaluate AST to object Based on the node's type, call the appropriate evaluator and return the resultant object

Types

This section is empty.

Jump to

Keyboard shortcuts

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