Documentation ¶
Index ¶
Constants ¶
View Source
const ( NUMBER_OBJ = "NUMBER" NIL_OBJ = "NIL_OBJ" BOOLEAN_OBJ = "BOOLEAN" ERROR_OBJ = "ERROR" )
Variables ¶
View Source
var ( ERR_PREFIXOP = "unsupported operator for prefix expression:'%s' and type: %s" ERR_INFIXOP = "unsupported operator for infix expression: %s '%s' %s" ERR_UNKNOWNIDENT = "unknown identifier: '%s' is not defined" ERR_DIVIDEBYZERO = "divide by zero" )
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean struct {
Bool bool
}
func NewBooleanObj ¶
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
type Error ¶
type Error struct {
Message string
}
func (*Error) Type ¶
func (e *Error) Type() ObjectType
type Number ¶
type Number struct {
Value float64
}
func (*Number) Type ¶
func (n *Number) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType Inspect() string }
type Scope ¶
func (*Scope) DebugPrint ¶
Click to show internal directories.
Click to hide internal directories.