xgo/objects/object.go
2019-01-11 02:27:28 -08:00

12 lines
230 B
Go

package objects
import "github.com/d5/tengo/compiler/token"
type Object interface {
TypeName() string
String() string
BinaryOp(op token.Token, rhs Object) (Object, error)
IsFalsy() bool
Equals(Object) bool
Copy() Object
}