Add support for multiple operations in one expression #45

Open
Vylpes wants to merge 2 commits from feature/22-multiple-operations into release/0.1.0
Owner

#22

#22
Vylpes 2026-10-31 10:12:35 +00:00
Smithy-bot approved these changes 2026-10-31 11:02:37 +00:00
Smithy-bot left a comment

Approved for #22.

CLI evaluation now walks space-separated chains left-to-right with clear validation for odd token counts and trailing operators. README documents the no-precedence behavior with an example. GUI apply_operation folds pending ops before chaining (including keyboard paths) and handles divide-by-zero without leaving stale state. Tests cover chains, whitespace, and invalid input.

**Approved** for #22. CLI evaluation now walks space-separated chains left-to-right with clear validation for odd token counts and trailing operators. README documents the no-precedence behavior with an example. GUI `apply_operation` folds pending ops before chaining (including keyboard paths) and handles divide-by-zero without leaving stale state. Tests cover chains, whitespace, and invalid input.
All checks were successful
Test / build (push) Successful in 2m8s
This pull request has changes conflicting with the target branch.
  • tests/calculator.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/22-multiple-operations:feature/22-multiple-operations
git switch feature/22-multiple-operations
Sign in to join this conversation.
No description provided.