interp

package
v0.0.0-...-3296f72 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(x ast.Expr, e *Env) (vals []reflect.Value, err error)

func Eval1

func Eval1(x ast.Expr, e *Env) (v reflect.Value, err error)

func REPL

func REPL(env *Env)

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

A nil *Env represents the empty environment.

func (*Env) With

func (e *Env) With(name string, v reflect.Value) *Env

type Package

type Package map[string]reflect.Value

TODO(kr): handle types, funcs, etc, not just vars.

Jump to

Keyboard shortcuts

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