Documentation ¶
Index ¶
Constants ¶
View Source
const Precedence = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument interface {
// contains filtered or unexported methods
}
Argument, a marker for zero-artiy functions.
type Bool ¶
type Bool bool
Bool, a zero-arity function returning a true/false value.
func (Bool) Precedence ¶
type Builtin ¶
type Builtin struct { Type BuiltinType ParameterCount int }
Builtin, a dynamic-arity function referring to one of a small set predefined commands. See also: BuiltinType.
func (Builtin) Precedence ¶
type BuiltinType ¶
type BuiltinType int
const ( // Joins several expressions into a single result. // For example, if multiple strings live side by side Span BuiltinType = iota // sequences holds a set of potentially repeating text. Stopping Shuffle Cycle // arity varies based on whether there's an else statement IfStatement UnlessStatement )
func (BuiltinType) String ¶
func (i BuiltinType) String() string
type Command ¶
Command, a dynamic-arity function referring to some externally defined command.
func (Command) Precedence ¶
type Number ¶
type Number float64
Number, a zero-arity function returning a number.
func (Number) Precedence ¶
type Operator ¶
type Operator int
Operator, built-in binary functions (arity of two).
const ( MUL Operator = (5 << Precedence) | iota QUO Operator = (5 << Precedence) | iota REM Operator = (5 << Precedence) | iota ADD Operator = (4 << Precedence) | iota SUB Operator = (4 << Precedence) | iota EQL Operator = (3 << Precedence) | iota NEQ Operator = (3 << Precedence) | iota LSS Operator = (3 << Precedence) | iota LEQ Operator = (3 << Precedence) | iota GTR Operator = (3 << Precedence) | iota GEQ Operator = (3 << Precedence) | iota LAND Operator = (2 << Precedence) | iota LOR Operator = (1 << Precedence) | iota )
func (Operator) Precedence ¶
Precedence of the corresponding infix operator.
type Quote ¶
type Quote string
Quote, a zero-arity function returning a string.
func (Quote) Precedence ¶
type Reference ¶
type Reference []string
Reference, a zero-arity function containing the path to an object property.
func (Reference) Precedence ¶
Click to show internal directories.
Click to hide internal directories.