Documentation ¶
Index ¶
Constants ¶
View Source
const ( INTEGER_OBJ = "INTEGER" BOOLEAN_OBJ = "BOOLEAN" NULL_OBJ = "NULL" RETURN_VALUE_OBJ = "RETURN_VALUE" ERROR_OBJ = "ERROR" FUNCTION_OBJ = "FUNCTION" STRING_OBJ = "STRING" BUILTIN_OBJ = "BUILTIN" ARRAY_OBJ = "ARRAY" BREAK = "BREAK" CONTINUE = "CONTINUE" MAP_OBJ = "MAP" QUOTE_OBJ = "QUOTE" MACRO_OBJ = "MARCO" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
Elements []Object
}
func (*Array) Type ¶
func (a *Array) Type() ObjectType
type BuiltFunction ¶
type Builtin ¶
type Builtin struct {
Fn BuiltFunction
}
func (*Builtin) Type ¶
func (b *Builtin) Type() ObjectType
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func ExtendEnvironment ¶
func ExtendEnvironment(outer *Environment) *Environment
func NewEnvironment ¶
func NewEnvironment() *Environment
type Error ¶
type Error struct {
Message string
}
func (*Error) Type ¶
func (e *Error) Type() ObjectType
type Function ¶
type Function struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Function) Type ¶
func (f *Function) Type() ObjectType
type HashKey ¶
type HashKey struct { Type ObjectType Value uint64 }
type LoopControl ¶
type LoopControl struct {
ControlType ObjectType
}
func (*LoopControl) Inspect ¶
func (lc *LoopControl) Inspect() string
func (*LoopControl) Type ¶
func (lc *LoopControl) Type() ObjectType
type Macro ¶
type Macro struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Macro) Type ¶
func (m *Macro) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType Inspect() string }
type ObjectType ¶
type ObjectType string
type ReturnValue ¶
type ReturnValue struct {
Value Object
}
func (*ReturnValue) Inspect ¶
func (rv *ReturnValue) Inspect() string
func (*ReturnValue) Type ¶
func (rv *ReturnValue) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.