Skip to content

Commit 385733c

Browse files
committed
Fix layout of operator precedence table.
1 parent 685cecf commit 385733c

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

docs/writingrules.rst

+19-9
Original file line numberDiff line numberDiff line change
@@ -640,33 +640,43 @@ together in a expression the associativity determines how they are grouped.
640640
Precedence Operator Description Associativity
641641
========== ======== ========================================= =============
642642
1 [] Array subscripting Left-to-right
643+
643644
. Structure member access
644645
---------- -------- ----------------------------------------- -------------
645-
2 - Unary minus Right-to-left
646-
~ Bitwise not
646+
2 `-` Unary minus Right-to-left
647+
648+
`~` Bitwise not
647649
---------- -------- ----------------------------------------- -------------
648-
3 * Multiplication Left-to-right
649-
\ Division
650+
3 `*` Multiplication Left-to-right
651+
652+
\\ Division
653+
650654
% Remainder
651655
---------- -------- ----------------------------------------- -------------
652-
4 + Addition Left-to-right
653-
- Substraction
656+
4 `+` Addition Left-to-right
657+
658+
`-` Substraction
654659
---------- -------- ----------------------------------------- -------------
655-
5 << Bitwise left shift Left-to-right
656-
>> Bitwise right shift
660+
5 `<<` Bitwise left shift Left-to-right
661+
662+
`>>` Bitwise right shift
657663
---------- -------- ----------------------------------------- -------------
658664
6 & Bitwise and Left-to-right
659665
---------- -------- ----------------------------------------- -------------
660666
7 ^ Bitwise xor Left-to-right
661667
---------- -------- ----------------------------------------- -------------
662-
8 | Bitwise or Left-to-right
668+
8 `|` Bitwise or Left-to-right
663669
---------- -------- ----------------------------------------- -------------
664670
9 < Less than Left-to-right
671+
665672
<= Less than or equal to
673+
666674
> Greater than
675+
667676
>= Greater than or equal to
668677
---------- -------- ----------------------------------------- -------------
669678
10 == Equal to Left-to-right
679+
670680
!= Not equal to
671681
---------- -------- ----------------------------------------- -------------
672682
11 not Logical not Right-to-left

0 commit comments

Comments
 (0)