Reference

Operator Precedence

Lowest binding at the top, highest at the bottom. Within a level, operators are left-associative unless noted.

LevelOperatorsDescriptionAssociativity
1<=>Biconditional (iff)right
2=>Implicationright
3||, orLogical disjunctionleft
4&&, andLogical conjunctionleft
5!, notLogical negationprefix
6==, !=, <, <=, >, >=, in, subsetComparison & membershipnone
7+, -Addition, subtractionleft
8*, /, %Multiplication, division, moduloleft
9&, |, ^Bitwise and, or, xorleft
10<<, >>, >>>Shift left, right, unsigned rightleft
11- (unary), ~Negation, bitwise complementprefix

Behavior-expression operators (||, +, ., *, guard) have their own precedence — see Process Calculus.