evaluator

package
v0.0.0-...-bf9f4d5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package evaluator contains the evaluating functions to process the different ast.Node

Index

Constants

This section is empty.

Variables

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

Constant defining object that are frequently used. This allows the interpreter to reuse these object instead of creating new entry in memory Objects constant:

  • NULL
  • TRUE
  • FALSE

Functions

func Eval

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

Eval is the main function of the evaluator. It determines which function to call based on the type of node received

Types

This section is empty.

Jump to

Keyboard shortcuts

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