{0 Precedence level and associativity of operators} The following table lists the precedence level of all operator classes from the highest to the lowest precedence. A few other syntactic constructions are also listed as references. {%latex: % % Note: the tables below should be kept in sync with the one in % manual/src/refman/expr.etex . % \begin{tabular}{cc} \hline Operator class & Associativity \\ \hline $!\ldots$ $\tilde{}\ldots$ & -- \\ $.\cdots()$ $.\cdots[]$ $.\cdots$\textbraceleft\textbraceright& -- \\ \#\ldots & left \\ function application & left \\ - -. & -- \\ $**\ldots$ lsl lsr asr & right \\ $*\ldots$ /\ldots \%\ldots mod land lor lxor & left \\ +\ldots -\ldots & left \\ :: & right \\ @\ldots \textasciicircum\ldots & right \\ =\ldots <\ldots >\ldots |\ldots \&\ldots \$\ldots != & left \\ \& \&\& & right \\ or || & right \\ , & -- \\ <- := & right \\ if & -- \\ ; & right \\ \hline \end{tabular} %} {%html:
Operator class | Associativity |
---|---|
!… ~… | – |
.…() .…[] .…{}
| – |
#… | left |
function application | left |
- -. | – |
**… lsl lsr asr | right |
*… /… %… mod land lor lxor
| left |
+… -… | left |
:: | right |
@… ^… | right |
=… <…
>… |… &… $… != | left |
& && | right |
or || | right |
, | – |
<- := | right |
if | – |
; | right |