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