|
TODO |
|
Custom operators are sweet.
|
|
\ No newline at end of file |
|
|
|
|
|
| Operator | Precedence | Associativity |
|
|
|
|
| ---------- | ---------- | ------------- |
|
|
|
|
|`new` | 16 | na
|
|
|
|
|`++` | 15 | na
|
|
|
|
|`--` | 15 | na
|
|
|
|
|`!` | 14 | na
|
|
|
|
|`~` | 14 | na
|
|
|
|
|`+` | 14 | na
|
|
|
|
|`-` | 14 | na
|
|
|
|
|`typeof` | 14 | na
|
|
|
|
|`void` | 14 | na
|
|
|
|
|`delete` | 14 | na
|
|
|
|
|`yield` | 2 | na
|
|
|
|
| `*`| 13| left
|
|
|
|
| `/`| 13| left
|
|
|
|
| `%`| 13| left
|
|
|
|
| `+`| 12| left
|
|
|
|
| `-`| 12| left
|
|
|
|
| `>>`| 11| left
|
|
|
|
| `<<`| 11| left
|
|
|
|
| `>>>`| 11| left
|
|
|
|
| `<`| 10| left
|
|
|
|
| `<=`| 10| left
|
|
|
|
| `>`| 10| left
|
|
|
|
| `>=`| 10| left
|
|
|
|
| `in`| 10| left
|
|
|
|
| `instanceof`| 10| left
|
|
|
|
| `==`| 9| left
|
|
|
|
| `!=`| 9| left
|
|
|
|
| `===`| 9| left
|
|
|
|
| `!==`| 9| left
|
|
|
|
| `&`| 8| left
|
|
|
|
| `^`| 7| left
|
|
|
|
| `|`| 6| left
|
|
|
|
| `&&`| 5| left
|
|
|
|
| `||`|4| left |