monkey-lang: github.com/prologic/monkey-lang/eval Index | Files

package eval

import "github.com/prologic/monkey-lang/eval"

Index

Package Files

eval.go

Variables

var (
    // TRUE is a cached Boolean object holding the `true` value
    TRUE = &object.Boolean{Value: true}

    // FALSE is a cached Boolean object holding the `false` value
    FALSE = &object.Boolean{Value: false}

    // NULL is a cached Null object
    NULL = &object.Null{}
)

func Eval Uses

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

Eval evaluates the node and returns an object

func EvalModule Uses

func EvalModule(name string) object.Object

EvalModule evaluates the named module and returns a *object.Module object

Package eval imports 9 packages (graph) and is imported by 1 packages. Updated 2019-04-05. Refresh now. Tools for package owners.