Associativity

enum Associativity : Enum<Associativity>

Determines how operators of the same Precedence are grouped in the absence of parentheses.

For example, the expression x ~ y ~ z would be parsed as follows given the corresponding associativity of ~:

  • Left associative: (x ~ y) ~ z

  • Right associative: x ~ (y ~ z)

  • Non-associative: syntax error.

Entries

NON
Link copied to clipboard
NON()
RIGHT
Link copied to clipboard
LEFT
Link copied to clipboard

Properties

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