Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Objects = [...]string{ NULL: "NULL", ERROR: "ERROR", INTEGER: "INTEGER", BOOLEAN: "BOOLEAN", STRING: "STRING", STRING_HASH_OBJ: "STRING_HASH", UUID: "UUID", }
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean struct {
Value bool
}
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
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 Error ¶
type Error struct {
Message string
}
func (*Error) Type ¶
func (e *Error) 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 Inspect() string }
type ObjectType ¶
type ObjectType int
const ( NULL ObjectType ERROR INTEGER BOOLEAN STRING STRING_HASH_OBJ // This is only used internally. It is not a part of the language. UUID )
type String ¶
type String struct {
Value string
}
func (*String) Type ¶
func (s *String) Type() ObjectType
type StringHash ¶
This is only used internally. It is not a part of the language.
func (*StringHash) Inspect ¶
func (s *StringHash) Inspect() string
func (*StringHash) Type ¶
func (s *StringHash) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.