Documentation ¶
Index ¶
Constants ¶
View Source
const (
ARRAY_OBJ = "ARRAY"
)
View Source
const (
BOOLEAN_OBJ = "BOOLEAN"
)
View Source
const (
BUILTIN_OBJ = "BUILTIN"
)
View Source
const (
ERROR_OBJ = "ERROR"
)
View Source
const (
FUNCTION_OBJ = "FUNCTION"
)
View Source
const (
INTEGER_OBJ = "INTEGER"
)
View Source
const (
MAP_OBJ = "MAP"
)
View Source
const (
NULL_OBJ = "NULL"
)
View Source
const (
RETURN_VALUE_OBJ = "RETURN_VALUE"
)
View Source
const (
STRING_OBJ = "STRING"
)
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 NewEnclosedEnvironment ¶
func NewEnclosedEnvironment(outer *Environment) *Environment
func NewEnvironment ¶
func NewEnvironment() *Environment
type Function ¶
type Function struct { Parameters []*ast.Identifier Body *ast.BlockStatement 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.