enum class Specifier: Enum<Specifier>, TermConvertible
EnumItems
Name | Description |
---|---|
XF
|
Postfix and no-associative |
YF
|
Postfix and left-associative |
FX
|
Prefix and non-associative |
FY
|
Prefix and right-associative |
XFX
|
Infix and non-associative |
XFY
|
Infix and right-associative |
YFX
|
Infix and left-associative |
Fields
Name | Description |
---|---|
val isPrefix: Boolean
|
Whether this specifier is a prefix one |
val isInfix: Boolean
|
Whether this specifier is an infix one |
val isPostfix: Boolean
|
Whether this specifier is a postfix one |
Methods
Extensions
CompanionObject
Specifier
enum class Specifier: Enum<Specifier>, TermConvertible
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:
| Prefix | Postfix | Infix | Associativity | | ------ | ------- | ----- | ------------- | | fx | xf | xfx | none | | | yf | yfx | left | | fy | | xfy | right |
Fields
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:
| Prefix | Postfix | Infix | Associativity | | ------ | ------- | ----- | ------------- | | fx | xf | xfx | none | | | yf | yfx | left | | fy | | xfy | right |