Commits

Taku Miyakawa committed d3b422f

Head subsection of "Operator expressions" section of the manual

  • Participants
  • Parent commits 86e0dbe

Comments (0)

Files changed (1)

File src/doc/language/syntax.rst

 
 Operator expressions
 ====================
+Operator expressions are syntax sugar for other expressions, such as :ref:`call expressions <language-syntax-call>`.
+
+Here is the list of expressions.
+
+.. list-table::
+    :header-rows: 1
+    :widths: 10 45 15
+
+    * - Priority
+      - Operators
+      - Associativity
+    * - Lowest
+      - ``=``, ``||=``, ``&&=``, ``|=``, ``^=``, ``&=``, ``+=``, ``-=``, ``*=``, ``/=``, ``//=``, ``%=``, ``**=``
+      - Non-associative
+    * -
+      - ``||``
+      - Right-associative
+    * -
+      - ``&&``
+      - Right-associative
+    * -
+      - ``==``, ``!=``, ``<``, ``>``, ``<=``, ``>=``, ``<=>``, ``=~``
+      - Non-associative
+    * -
+      - ``..``, ``..<``, ``<..``, ``<..<``
+      - Non-associative
+    * -
+      - ``|``, ``^``
+      - Left-associative
+    * -
+      - ``&``
+      - Left-associative
+    * -
+      - ``<<``, ``>>``
+      - Left-associative
+    * -
+      - ``+``, ``-``
+      - Left-associative
+    * -
+      - ``*``, ``/``, ``//``, ``%``
+      - Left-associative
+    * -
+      - ``**``
+      - Right-associative
+    * - Highest
+      - ``-``, ``!``, ``-``
+      - Unary
+
+
+Assignment expressions
+----------------------
+
+Logical expressions
+-------------------
+
+Relationship expressions
+------------------------
+
+Range expressions
+-----------------
+
+Bit expressions
+---------------
+
+Additive expressions
+--------------------
+
+Multiplicative expressions
+--------------------------
+
+Power expressions
+-----------------
 
 Unary expressions
 -----------------
 
-Binary expressions
-------------------
-
-Ternary expressions
--------------------
-
 .. _language-syntax-chunk:
 
 Chunks