@@ -445,26 +445,38 @@ parentheses in your expressions (e.g. ``(1 + 2) * 4`` or ``1 + (2 * 4)``.
445
445
The following table summarizes the operators and their associativity from the
446
446
**highest to the lowest precedence **:
447
447
448
- ======================================================= =============
449
- Operators associativity
450
- ======================================================= =============
451
- ``- ``, ``+ `` (unary operators that add the number sign) none
452
- ``** `` right
453
- ``* ``, ``/ ``, ``% `` left
454
- ``not ``, ``! `` none
455
- ``~ `` left
456
- ``+ ``, ``- `` left
457
- ``.. `` left
458
- ``== ``, ``=== ``, ``!= ``, ``!== ``, \ left
459
- ``< ``, ``> ``, ``>= ``, ``<= ``, \
460
- ``not in ``, ``in ``, ``contains ``, \
461
- ``starts with ``, ``ends with ``, ``matches ``
462
- ``& `` left
463
- ``^ `` left
464
- ``| `` left
465
- ``and ``, ``&& `` left
466
- ``or ``, ``|| `` left
467
- ======================================================= =============
448
+ +----------------------------------------------------------+---------------+
449
+ | Operators | Associativity |
450
+ +==========================================================+===============+
451
+ | ``- `` , ``+ `` (unary operators that add the number sign) | none |
452
+ +----------------------------------------------------------+---------------+
453
+ | ``** `` | right |
454
+ +----------------------------------------------------------+---------------+
455
+ | ``* ``, ``/ ``, ``% `` | left |
456
+ +----------------------------------------------------------+---------------+
457
+ | ``not ``, ``! `` | none |
458
+ +----------------------------------------------------------+---------------+
459
+ | ``~ `` | left |
460
+ +----------------------------------------------------------+---------------+
461
+ | ``+ ``, ``- `` | left |
462
+ +----------------------------------------------------------+---------------+
463
+ | ``.. `` | left |
464
+ +----------------------------------------------------------+---------------+
465
+ | ``== ``, ``=== ``, ``!= ``, ``!== ``, | left |
466
+ | ``< ``, ``> ``, ``>= ``, ``<= ``, | |
467
+ | ``not in ``, ``in ``, ``contains ``, | |
468
+ | ``starts with ``, ``ends with ``, ``matches `` | |
469
+ +----------------------------------------------------------+---------------+
470
+ | ``& `` | left |
471
+ +----------------------------------------------------------+---------------+
472
+ | ``^ `` | left |
473
+ +----------------------------------------------------------+---------------+
474
+ | ``| `` | left |
475
+ +----------------------------------------------------------+---------------+
476
+ | ``and ``, ``&& `` | left |
477
+ +----------------------------------------------------------+---------------+
478
+ | ``or ``, ``|| `` | left |
479
+ +----------------------------------------------------------+---------------+
468
480
469
481
Built-in Objects and Variables
470
482
------------------------------
0 commit comments