Specifier

Enumeration containing all type of specifiers that can be given to Operators.

The conventions for defining the order (prefix, infix and postfix) and associativity (left, right, none) of operators are as follows, where f stands for the position of the operator and x and y for its arguments:

PrefixPostfixInfixAssociativity
fxxfxfxnone
yfyfxleft
fyxfyright

Entries

Link copied to clipboard

Postfix and no-associative

Link copied to clipboard

Postfix and left-associative

Link copied to clipboard

Prefix and non-associative

Link copied to clipboard

Prefix and right-associative

Link copied to clipboard

Infix and non-associative

Link copied to clipboard

Infix and right-associative

Link copied to clipboard

Infix and left-associative

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Whether this specifier is an infix one

Link copied to clipboard

Whether this specifier is a postfix one

Link copied to clipboard

Whether this specifier is a prefix one

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
open override fun toTerm(): Atom

Creates an atom containing the specifier symbolic name

Link copied to clipboard
fun valueOf(value: String): Specifier

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.