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 = "ARRAY" OBJ_OBJ = "OBJECT" HTML_OBJ = "HTML" USE_OBJ = "LAYOUT" RESERVE_OBJ = "RESERVE" INSERT_OBJ = "INSERT" BLOCK_OBJ = "BLOCK" BUILTIN_OBJ = "FUNCTION" COMPONENT_OBJ = "COMPONENT" BREAK_OBJ = "BREAK" BREAK_IF_OBJ = "BREAK_IF" CONTINUE_OBJ = "CONTINUE" CONTINUE_IF_OBJ = "CONTINUE_IF" )
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 Break ¶ added in v1.2.0
type Break struct{}
func (*Break) Is ¶ added in v1.2.0
func (b *Break) Is(t ObjectType) bool
func (*Break) Type ¶ added in v1.2.0
func (b *Break) 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 Component ¶ added in v1.4.0
func (*Component) Is ¶ added in v1.4.0
func (c *Component) Is(t ObjectType) bool
func (*Component) Type ¶ added in v1.4.0
func (c *Component) Type() ObjectType
type Continue ¶ added in v1.2.0
type Continue struct{}
func (*Continue) Is ¶ added in v1.2.0
func (c *Continue) Is(t ObjectType) bool
func (*Continue) Type ¶ added in v1.2.0
func (c *Continue) Type() ObjectType
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func NewEnclosedEnv ¶ added in v0.0.2
func (*Env) SetLoopVar ¶ added in v1.0.0
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 Obj ¶ added in v0.0.8
func (*Obj) Is ¶ added in v0.0.8
func (o *Obj) Is(t ObjectType) bool
func (*Obj) Type ¶ added in v0.0.8
func (o *Obj) 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.