Documentation ¶
Index ¶
Constants ¶
View Source
const ( NUMBER_OBJ = "NUMBER" NIL_OBJ = "NIL_OBJ" BOOLEAN_OBJ = "BOOLEAN" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean struct {
Bool bool
}
func NewBooleanObj ¶
func (*Boolean) Type ¶
func (b *Boolean) 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 }
Click to show internal directories.
Click to hide internal directories.