Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR_OBJ = "ERROR" NULL_OBJ = "NULL" RETURN_VALUE_OBJ = "RETURN_VALUE" INTEGER_OBJ = "INTEGER" BOOLEAN_OBJ = "BOOLEAN" STRING_OBJ = "STRING" ARRAY_OBJ = "ARRAY" HASH_MAP_OBJ = "HASH_MAP" FUNCTION_OBJ = "FUNCTION" BUILTIN_OBJ = "BUILTIN" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
type Array struct {
Elements []Object
}
func (*Array) Type ¶
func (a *Array) Type() ObjectType
type Boolean ¶
type Boolean struct {
Value bool
}
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
type Builtin ¶
type Builtin struct {
Fn BuiltinFunction
}
func (*Builtin) Type ¶
func (b *Builtin) Type() ObjectType
type BuiltinFunction ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func ConvertContextToEnv ¶
func NewEnclosedEnv ¶
type Error ¶
type Error struct {
Message string
}
func (*Error) Type ¶
func (e *Error) Type() ObjectType
type Function ¶
type Function struct { Parameters []*ast.Ident Body *ast.BlockStatement Env *Env }
func (*Function) Type ¶
func (f *Function) Type() ObjectType
type HashKey ¶
type HashKey struct { Type ObjectType Value uint64 }
type Integer ¶
type Integer struct {
Value int64
}
func (*Integer) Type ¶
func (i *Integer) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType ToString() string }
type ObjectType ¶
type ObjectType string
Click to show internal directories.
Click to hide internal directories.