Documentation ¶
Index ¶
- func BooleanVal(v Value) bool
- func EntryFromValue(v Value) (database.Entry, error)
- func FloatVal(v Value) float64
- func IntVal(v Value) int64
- type Builtin
- type BuiltinMax
- type BuiltinMin
- type Kind
- type Value
- func BinaryOp(left Value, operator parse.Token, right Value) Value
- func MakeBoolean(b bool) Value
- func MakeFloat(f float64) Value
- func MakeFromEntry(entry database.Entry) Value
- func MakeFromSchemaType(b []byte, t schema.Type) Value
- func MakeFromToken(tok parse.Token) Value
- func MakeInt(i int64) Value
- func MakeString(s string) Value
- func MakeTuple(t []Value) Value
- func MakeUnknown() Value
- func TupleVal(v Value) []Value
- func UnaryOp(operator parse.Token, operand Value) Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BooleanVal ¶
Types ¶
type Builtin ¶
type Builtin interface { Name() string Validate(input schema.Object) (schema.Object, error) Execute(input Value) Value }
func LookupBuiltinFunction ¶
type BuiltinMax ¶
type BuiltinMax struct{}
func (BuiltinMax) Execute ¶
func (b BuiltinMax) Execute(input Value) Value
func (BuiltinMax) Name ¶
func (b BuiltinMax) Name() string
type BuiltinMin ¶
type BuiltinMin struct{}
func (BuiltinMin) Execute ¶
func (b BuiltinMin) Execute(input Value) Value
func (BuiltinMin) Name ¶
func (b BuiltinMin) Name() string
type Value ¶
type Value interface {
Kind() Kind
}
func MakeBoolean ¶
func MakeFromEntry ¶
func MakeFromToken ¶
func MakeString ¶
func MakeUnknown ¶
func MakeUnknown() Value
Click to show internal directories.
Click to hide internal directories.