harrysarson / elm-decode-elmi / Ast.BinaryOperation


type Associativity
    = Left
    | None
    | Right

Associativity of a binary operation.

Precedence makes sense of repeated use of operators without parentheses. For example in x * y * z, x * y is evaluated first as * is left associative.


type Precedence
    = Precedence Basics.Int

Precedence of a binary operation.

Precedence determines the order of operatiations. For example, in 5 * 7 -2 the * operation has higher precedence and so 5 * 7 is evaluated first.