Documentation ¶
Index ¶
Constants ¶
View Source
const ( FLOAT = "FLOAT" BOOLEAN = "BOOLEAN" NULL = "NULL" RETURN = "RETURN" ERROR = "ERROR" FUNCTION = "FUNCTION" STRING = "STRING" BUILTIN = "BUILTIN" ARRAY = "ARRAY" HASH = "HASH" VOID = "VOID" BREAK = "BREAK" CONTINUE = "CONTINUE" )
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.