Next: , Previous: , Up: Full Syntax Description   [Contents][Index]


10.2.8.4 Rewrite expressions

A unary expression is a unary operator, followed by a single operand. A binary expression consists of two operands with a binary operator between them.

The following table ranges all operators according to their precedence (from lowest to highest). All operators are left-associative, except as noted otherwise.

  1. = (assignment, right-associative, see Assignments)
  2. ||
  3. &&
  4. =~, !~ (non-associative)
  5. |
  6. ^
  7. &
  8. ==, !=
  9. <, <=, >, >=
  10. <<, >>
  11. +, -
  12. *, /, %
  13. unary -, !