-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOperators.t2t
27 lines (23 loc) · 1.64 KB
/
Operators.t2t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Operators
%!includeconf: config.t2t
== Precedence ==
|| Operator || Description || Associativity |
| :: | Scope resolution | Left-to-right |
| ++ -- | Suffix/postfix increment and decrement | |
| [] | Array subscript | |
| . | Element selection | |
| ++ -- | Prefix increment and decrement | Right-to-left |
| + - | Unary plus and minus | |
| ! ~ | Logical NOT and bitwise NOT | |
| * | Indirection (dereference) | |
| & | Address-of | |
| * / % | Multiplication, division, and remainder | |
| + - | Addition and subtraction. | |
| ~<< ~>> | Bitwise left shift and right shift | |
| & ^ ~| | Bitwise math operations. | |
| < <= > >= | Relational operators. | |
| == != | For relational = and ≠ respectively | |
| && ~|~| | Logical operators. | |
| , | Tuple separator Left-to-right | |
| = | Direct assignment | |
| += −= *= /= %= <<= >>= &= ^= ~|= | Assignment by sum and difference | |