corelib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewEnv func() Env

NewEnv is function provided for tests

Functions

func ValueEqual

func ValueEqual(v1 interface{}, v2 interface{}) bool

ValueEqual return true if v1 and v2 is same value. If passed function, does extra checks otherwise just doing reflect.DeepEqual

Types

type Env

type Env interface {
	DefineType(string, interface{}) error
	Define(string, interface{}) error
	Get(string) (interface{}, error)
	Run(ast.Stmt) (interface{}, error)
}

Env is an interface representing vm.Env.

Jump to

Keyboard shortcuts

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