Versions in this module Expand all Collapse all v0 v0.0.1 Aug 24, 2022 Changes in this version + const ARRAY_OBJ + const BOOLEAN_OBJ + const BUILTIN_OBJ + const ERROR_OBJ + const FUNCTION_OBJ + const HASH_OBJ + const INTEGER_OBJ + const NULL_OBJ + const RETURN_VALUE_OBJ + const STRING_OBJ + type Array struct + Elements []Object + func (ao *Array) Inspect() string + func (ao *Array) Type() ObjectType + type Boolean struct + Value bool + func (b *Boolean) HashKey() HashKey + func (b *Boolean) Inspect() string + func (b *Boolean) Type() ObjectType + type Builtin struct + Fn BuiltinFunction + func (b *Builtin) Inspect() string + func (b *Builtin) Type() ObjectType + type BuiltinFunction func(args ...Object) Object + type Environment struct + func NewEnclosedEnvironment(outer *Environment) *Environment + func NewEnvironment() *Environment + func (e *Environment) Get(name string) (Object, bool) + func (e *Environment) Set(name string, val Object) Object + type Error struct + Message string + func (e *Error) Inspect() string + func (e *Error) Type() ObjectType + type Function struct + Body *ast.BlockStatement + Env *Environment + Parameters []*ast.Identifier + func (f *Function) Inspect() string + func (f *Function) Type() ObjectType + type Hash struct + Pairs map[HashKey]HashPair + func (h *Hash) Inspect() string + func (h *Hash) Type() ObjectType + type HashKey struct + Type ObjectType + Value uint64 + type HashPair struct + Key Object + Value Object + type Hashable interface + HashKey func() HashKey + type Integer struct + Value int64 + func (i *Integer) HashKey() HashKey + func (i *Integer) Inspect() string + func (i *Integer) Type() ObjectType + type Null struct + func (n *Null) Inspect() string + func (n *Null) Type() ObjectType + type Object interface + Inspect func() string + Type func() ObjectType + type ObjectType string + type ReturnValue struct + Value Object + func (rv *ReturnValue) Inspect() string + func (rv *ReturnValue) Type() ObjectType + type String struct + Value string + func (s *String) HashKey() HashKey + func (s *String) Inspect() string + func (s *String) Type() ObjectType