Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
Elements []Object
}
func (*Array) Type ¶
func (*Array) Type() ObjectType
type Boolean ¶
type Boolean struct {
Value bool
}
func (*Boolean) Type ¶
func (*Boolean) Type() ObjectType
type Builtin ¶
type Builtin struct {
Fn BuiltinFunction
}
func (*Builtin) Type ¶
func (*Builtin) Type() ObjectType
type BuiltinFunction ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnclosedEnvironment ¶
func NewEnclosedEnvironment(outer *Environment) *Environment
func NewEnvironment ¶
func NewEnvironment() *Environment
type ErrorValue ¶
type ErrorValue struct {
Message string
}
func (*ErrorValue) Inspect ¶
func (r *ErrorValue) Inspect() string
func (*ErrorValue) Type ¶
func (*ErrorValue) Type() ObjectType
type Function ¶
type Function struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Function) Type ¶
func (*Function) Type() ObjectType
type HashKey ¶
type HashKey struct { Type ObjectType Value int }
type Integer ¶
type Integer struct {
Value int
}
func (*Integer) Type ¶
func (*Integer) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType Inspect() string }
type ObjectType ¶
type ObjectType uint8
const ( INTEGER ObjectType = iota BOOLEAN NULL RETURN_VALUE ERROR_VALUE FUNCTION STRING BUILTIN ARRAY HASH )
func (ObjectType) String ¶
func (i ObjectType) String() string
type ReturnValue ¶
type ReturnValue struct {
Value Object
}
func (*ReturnValue) Inspect ¶
func (r *ReturnValue) Inspect() string
func (*ReturnValue) Type ¶
func (*ReturnValue) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.