Documentation ¶
Index ¶
Constants ¶
View Source
const ( NIL_OBJ = "NIL" ERR_OBJ = "ERROR" INT_OBJ = "INTEGER" FLOAT_OBJ = "FLOAT" BOOL_OBJ = "BOOLEAN" STR_OBJ = "STRING" ARR_OBJ = "SLICE" HTML_OBJ = "HTML" USE_OBJ = "LAYOUT" RESERVE_OBJ = "RESERVE" INSERT_OBJ = "INSERT" BLOCK_OBJ = "BLOCK" BUILTIN_OBJ = "FUNCTION" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶ added in v0.0.2
type Array struct {
Elements []Object
}
func (*Array) Is ¶ added in v0.0.2
func (a *Array) Is(t ObjectType) bool
func (*Array) Type ¶ added in v0.0.2
func (a *Array) Type() ObjectType
type Block ¶ added in v0.0.2
type Block struct {
Elements []Object
}
func (*Block) Is ¶ added in v0.0.2
func (b *Block) Is(t ObjectType) bool
func (*Block) Type ¶ added in v0.0.2
func (b *Block) Type() ObjectType
type Bool ¶ added in v0.0.2
type Bool struct {
Value bool
}
func (*Bool) Is ¶ added in v0.0.2
func (b *Bool) Is(t ObjectType) bool
func (*Bool) Type ¶ added in v0.0.2
func (b *Bool) Type() ObjectType
type Builtin ¶ added in v0.0.2
type Builtin struct {
Fn BuiltinFunction
}
func (*Builtin) Type ¶ added in v0.0.2
func (b *Builtin) Type() ObjectType
type BuiltinFunction ¶ added in v0.0.2
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func NewEnclosedEnv ¶ added in v0.0.2
type Error ¶
func (*Error) Is ¶ added in v0.0.2
func (e *Error) Is(t ObjectType) bool
func (*Error) Type ¶
func (e *Error) Type() ObjectType
type Float ¶ added in v0.0.2
type Float struct {
Value float64
}
func (*Float) Is ¶ added in v0.0.2
func (f *Float) Is(t ObjectType) bool
func (*Float) SubtractFromFloat ¶ added in v0.0.2
func (*Float) Type ¶ added in v0.0.2
func (f *Float) Type() ObjectType
type HTML ¶ added in v0.0.2
type HTML struct {
Value string
}
func (*HTML) Is ¶ added in v0.0.2
func (h *HTML) Is(t ObjectType) bool
func (*HTML) Type ¶ added in v0.0.2
func (h *HTML) Type() ObjectType
type Int ¶ added in v0.0.2
type Int struct {
Value int64
}
func (*Int) Is ¶ added in v0.0.2
func (i *Int) Is(t ObjectType) bool
func (*Int) Type ¶ added in v0.0.2
func (i *Int) Type() ObjectType
type Nil ¶
type Nil struct{}
func (*Nil) Is ¶ added in v0.0.2
func (n *Nil) Is(t ObjectType) bool
func (*Nil) Type ¶
func (n *Nil) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType String() string Is(ObjectType) bool }
type ObjectType ¶
type ObjectType string
type Reserve ¶ added in v0.0.2
func (*Reserve) Is ¶ added in v0.0.2
func (r *Reserve) Is(t ObjectType) bool
func (*Reserve) Type ¶ added in v0.0.2
func (r *Reserve) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.