diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index 445ed55e6..93378e2c4 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -26,12 +26,12 @@ \section{Operator Precedence and Associativity}\label{operator-precedence-and-as An operator with higher precedence is evaluated before an operator with lower precedence in the same expression. For example, `\lstinline!*!' having higher precedence than `\lstinline!+!' means that \lstinline!1 + 2 * 3! becomes evaluated as \lstinline!1 + (2 * 3)!. -Operator associativity are used to determine the order of evaluation when operators have equal precedence. +Precedence group associativity is used to determine the order of evaluation when operators belong to the same group of equal precedence. Left associativity means that evaluation proceeds from left to right. -For example, left associativity of binary `\lstinline!-!' means that \lstinline!1 - 2 - 3! becomes evaluated as \lstinline!(1 - 2) - 3!. -Right associativity means evaluation from right to left, but there are no operators with this associativity in Modelica. -An operator may also be non-associative, meaning that evaluation order cannot be determined based on associativity. -For example, non-associativity of `\lstinline!