Documentation ¶
Index ¶
- Variables
- type Context
- func (c *Context) Bind(name skim.Symbol, value skim.Atom) *Context
- func (c *Context) BindProc(name skim.Symbol, proc Proc) *Context
- func (c *Context) Dup() *Context
- func (c *Context) Eval(a skim.Atom) (result skim.Atom, err error)
- func (c *Context) Fork() *Context
- func (c *Context) Overlay(parent *Context) *Context
- func (c *Context) Parent() *Context
- func (c *Context) Resolve(name skim.Symbol) (value skim.Atom, ok bool)
- func (c *Context) SetUpvalue(name string, val interface{}) *Context
- func (c *Context) Unbind(name skim.Symbol) (ok bool)
- func (c *Context) Upvalue(name string) interface{}
- type Evaler
- type Proc
Constants ¶
This section is empty.
Variables ¶
View Source
var Unbound = unbound{}
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (*Context) Dup ¶
Dup clones a context, flattening it into a single Context of known bindings and c's upvalues.
func (*Context) SetUpvalue ¶
Click to show internal directories.
Click to hide internal directories.