Operator

interface Operator

A pure function from values to a value.

Functions

Link copied to clipboard

In lieu of polymorphic types, have an optional list of alternative types to check against.

Link copied to clipboard
abstract fun apply(arguments: List<Value>): Value

Computes the result of applying this operator to arguments.

Link copied to clipboard
abstract fun toDocument(arguments: List<PrettyPrintable>): Document

Shows this operator applied to arguments.

Properties

Link copied to clipboard

Determines the grouping of consecutive operators that have the same precedence.

Link copied to clipboard
abstract val precedence: Precedence

Determines the order of this operator with respect to (a subset of) other operators. Operators with higher precedence bind tighter than operators with lower precedence (for example, multiplication has higher precedence than addition).

Link copied to clipboard
abstract val type: FunctionType

The type of this operator.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

The number of arguments this operator takes.

Link copied to clipboard

Returns true when this operator has precedence higher than or equal to other.