diff options
author | hlaaftana <10591326+hlaaftana@users.noreply.github.com> | 2020-03-04 09:50:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 07:50:36 +0100 |
commit | 34c16f5ecae765c014335525ef518233832832db (patch) | |
tree | 7d65418179ce76c532a2684424d63d31ccd1f1e7 | |
parent | 3ca8f0bde69d060c0b2298113aa02268c35c1550 (diff) | |
download | Nim-34c16f5ecae765c014335525ef518233832832db.tar.gz |
fix #13409: Document as infix operator (#13570)
-rw-r--r-- | doc/manual.rst | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index 71f6f73f9..516be24ea 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -559,7 +559,7 @@ following characters:: defined here.) These keywords are also operators: -``and or not xor shl shr div mod in notin is isnot of``. +``and or not xor shl shr div mod in notin is isnot of as``. `.`:tok: `=`:tok:, `:`:tok:, `::`:tok: are not available as general operators; they are used for other notational purposes. @@ -632,21 +632,21 @@ has the second lowest precedence. Otherwise precedence is determined by the first character. -================ =============================================== ================== =============== -Precedence level Operators First character Terminal symbol -================ =============================================== ================== =============== - 10 (highest) ``$ ^`` OP10 - 9 ``* / div mod shl shr %`` ``* % \ /`` OP9 - 8 ``+ -`` ``+ - ~ |`` OP8 - 7 ``&`` ``&`` OP7 - 6 ``..`` ``.`` OP6 - 5 ``== <= < >= > != in notin is isnot not of`` ``= < > !`` OP5 - 4 ``and`` OP4 - 3 ``or xor`` OP3 - 2 ``@ : ?`` OP2 - 1 *assignment operator* (like ``+=``, ``*=``) OP1 - 0 (lowest) *arrow like operator* (like ``->``, ``=>``) OP0 -================ =============================================== ================== =============== +================ ================================================== ================== =============== +Precedence level Operators First character Terminal symbol +================ ================================================== ================== =============== + 10 (highest) ``$ ^`` OP10 + 9 ``* / div mod shl shr %`` ``* % \ /`` OP9 + 8 ``+ -`` ``+ - ~ |`` OP8 + 7 ``&`` ``&`` OP7 + 6 ``..`` ``.`` OP6 + 5 ``== <= < >= > != in notin is isnot not of as`` ``= < > !`` OP5 + 4 ``and`` OP4 + 3 ``or xor`` OP3 + 2 ``@ : ?`` OP2 + 1 *assignment operator* (like ``+=``, ``*=``) OP1 + 0 (lowest) *arrow like operator* (like ``->``, ``=>``) OP0 +================ ================================================== ================== =============== Whether an operator is used a prefix operator is also affected by preceding |