2019-01-09 10:17:42 +03:00
|
|
|
package objects
|
|
|
|
|
2019-01-11 13:27:28 +03:00
|
|
|
import "github.com/d5/tengo/compiler/token"
|
2019-01-09 10:17:42 +03:00
|
|
|
|
|
|
|
type Object interface {
|
|
|
|
TypeName() string
|
|
|
|
String() string
|
|
|
|
BinaryOp(op token.Token, rhs Object) (Object, error)
|
|
|
|
IsFalsy() bool
|
|
|
|
Equals(Object) bool
|
|
|
|
Copy() Object
|
|
|
|
}
|