Skip to content

Commit

Permalink
Remove 'Note that'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 16, 2022
1 parent ffc3b37 commit ff20835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/operatorsandexpressions.tex
Expand Up @@ -37,7 +37,7 @@ \section{Operator Precedence and Associativity}\label{operator-precedence-and-as
Note that the operators don't need to be identical for associativity to matter; also \lstinline!1 == 2 < 3! is invalid, and \lstinline!1 - 2 + 3! is implicitly structured as \lstinline!(1 - 2) + 3!.
Also note that the non-associative array range in Modelica can be used with either two or three operands separated by `\lstinline!:!', meaning that \lstinline!1 : 2 : 5! is one valid ternary use of the operator rather than two invalid binary uses of the operator.

Note that at the parsing stage -- which is where the here defined operator precedence and associativity matters -- the subexpression structure is fixed.
At the parsing stage -- which is where the here defined operator precedence and associativity matters -- the subexpression structure is fixed.
Since Modelica tools have the freedom to symbolically manipulate expressions, this subexpression structure cannot be expected to reflect order of evaluation, compare \cref{evaluation-order}.

The following table presents the precedence and associativity of all the expression operators, consistent with and complementing information that can be derived from the Modelica grammar in \cref{modelica-concrete-syntax}.
Expand Down

0 comments on commit ff20835

Please sign in to comment.