evaluator

package
v0.0.0-...-68482a3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NULL  = &object.Null{}
	TRUE  = &object.Numeric{Value: -1.0}
	FALSE = &object.Numeric{Value: 0}
)

Because null and boolean values never change we can reference them instead of creating new objects

Functions

func Eval

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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