Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin struct {
Fn BuiltinFunction
}
type BuiltinFunction ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func ExtendEnvironment ¶
func ExtendEnvironment(obj Closure, args []Object) *Environment
func NewEnclosedEnvironment ¶
func NewEnclosedEnvironment(outer *Environment) *Environment
func NewEnvironment ¶
func NewEnvironment() *Environment
type Function ¶
type Function struct { Parameters []*ast.Identifier Body *ast.Block Env *Environment }
type Macro ¶
type Macro struct { Parameters []*ast.Identifier Body *ast.Block Env *Environment }
type ReturnValue ¶
type ReturnValue struct {
Value Object
}
func (*ReturnValue) Inspect ¶
func (rv *ReturnValue) Inspect() string
func (*ReturnValue) Type ¶
func (rv *ReturnValue) Type() Type
Click to show internal directories.
Click to hide internal directories.