Skip to main content

Module expression

Module expression 

Source
Expand description

Recursive expression parser with full operator precedence.

Precedence (lowest to highest):

  1. OR
  2. XOR
  3. AND
  4. NOT (unary prefix)
  5. Comparison (=, <>, <, <=, >, >=, =~)
  6. String/List ops (STARTS WITH, ENDS WITH, CONTAINS, IN, IS NULL)
  7. Add / Subtract (+, -)
  8. Multiply / Divide / Modulo (*, /, %)
  9. Power (^)
  10. Unary (-, ~)
  11. Postfix (property access, subscript, function call)
  12. Primary (literals, variables, parenthesized, list literal, case, etc.)

Functionsยง

expression_parser
Parse a full expression.