Expand description
Additive expression parsing and evaluation for AIMX.
Parses + and - expressions as left-associative over multiplicative terms and
evaluates them for numbers, text, and booleans.
- Numbers:
+add,-subtract. - Text:
+concatenate,-remove last occurrence of the right operand (no-op if absent/empty). - Bool:
+XOR,-XNOR. Returns errors for incompatible operand types including the reconstructed formula for context.
Related: multiplicative, relational,
expression, primary.
Enums§
- Additive
- Additive expression AST node.
Functions§
- parse_
additive - Parse an additive expression.