Expand description
Recursive expression parser with full operator precedence.
Precedence (lowest to highest):
- OR
- XOR
- AND
- NOT (unary prefix)
- Comparison (=, <>, <, <=, >, >=, =~)
- String/List ops (STARTS WITH, ENDS WITH, CONTAINS, IN, IS NULL)
- Add / Subtract (+, -)
- Multiply / Divide / Modulo (*, /, %)
- Power (^)
- Unary (-, ~)
- Postfix (property access, subscript, function call)
- Primary (literals, variables, parenthesized, list literal, case, etc.)
Functionsยง
- expression_
parser - Parse a full expression.