Documentation
¶
Index ¶
Constants ¶
View Source
const ( INTEGER_OBJ = "INTEIRO" BOOLEAN_OBJ = "BOOLEANO" NULL_OBJ = "NULO" DEVOLVE_VALUE_OBJ = "DEVOLVE_VALUE" ERROR_OBJ = "ERRO" FUNCTION_OBJ = "PROCESSO" STRING_OBJ = "STRING" BUILTIN_OBJ = "BUILTIN" LISTA_OBJ = "LISTA" ESTRUTURA_OBJ = "ESTRUTURA" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean struct {
Value string
}
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
type Builtin ¶
type Builtin struct {
Fn BuiltinFunction
}
func (*Builtin) Type ¶
func (b *Builtin) Type() ObjectType
type BuiltinFunction ¶
type DevolveValue ¶
type DevolveValue struct {
Value Object
}
func (*DevolveValue) Inspect ¶
func (dv *DevolveValue) Inspect() string
func (*DevolveValue) Type ¶
func (dv *DevolveValue) Type() ObjectType
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 Estrutura ¶ added in v0.3.0
func (*Estrutura) Type ¶ added in v0.3.0
func (t *Estrutura) Type() ObjectType
type Integer ¶
type Integer struct {
Value int64
}
func (*Integer) Type ¶
func (i *Integer) Type() ObjectType
type Lista ¶
type Lista struct {
Elements []Object
}
func (*Lista) Type ¶
func (l *Lista) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType Inspect() string }
type ObjectType ¶
type ObjectType string
type Proc ¶
type Proc struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Proc) Type ¶
func (p *Proc) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.