Operator precedence: Difference between revisions
add Standard ML (https://smlfamily.github.io/Basis/top-level-chapter.html#section:4)
Alextretyak (talk | contribs) (Added 11l) |
(add Standard ML (https://smlfamily.github.io/Basis/top-level-chapter.html#section:4)) |
||
Line 2,214:
"Beginners might be confused by:"
5 + a * b "same as (5 + a) * b; all binary; therefore left to right"</lang>
=={{header|Standard ML}}==
{| class="wikitable"
|-
! Precedence
! Operator
! Associativity
|-
! <small>highest</small>
|
|
|-
! 7
| <code>* / div mod</code>
| left
|-
! 6
| <code>+ - ^</code>
| left
|-
! 5
| <code>:: @</code>
| right
|-
! 4
| <code>= <> > >= < <=</code>
| left
|-
! 3
| <code>:= o</code>
| left
|-
! 0
| <code>before</code>
| left
|}
=={{header|Tcl}}==
|