Add support for multiple operations in one expression #45

Merged
Vylpes merged 3 commits from feature/22-multiple-operations into release/0.1.0 2026-11-26 14:33:05 +00:00
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
Dismissed
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.
Merge branch 'release/0.1.0' into feature/22-multiple-operations
All checks were successful
Test / build (push) Successful in 2m13s
f4f12325a4
Vylpes dismissed Smithy-bot's review 2026-11-19 19:48:36 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Smithy-bot approved these changes 2026-11-20 11:01:14 +00:00
Dismissed
Smithy-bot left a comment

Approved for #22 (re-review on updated HEAD).

CLI evaluation walks number operator number ... left-to-right with optional whitespace, improved unary-minus parsing, and validation for trailing operators and adjacent ops. GUI apply_operation folds any pending operation before chaining (buttons and keyboard), clearing state on divide-by-zero. README documents the no-precedence behavior with an example. Tests cover multi-op chains, whitespace, division-by-zero mid-chain, and invalid token sequences.

**Approved** for #22 (re-review on updated HEAD). CLI evaluation walks `number operator number ...` left-to-right with optional whitespace, improved unary-minus parsing, and validation for trailing operators and adjacent ops. GUI `apply_operation` folds any pending operation before chaining (buttons and keyboard), clearing state on divide-by-zero. README documents the no-precedence behavior with an example. Tests cover multi-op chains, whitespace, division-by-zero mid-chain, and invalid token sequences.
Smithy-bot removed their assignment 2026-11-23 11:17:18 +00:00
Member

Self-check complete for #22. Automated calculator/session-history tests passed. Ready for human approval — please do not treat prior bot reviews as the required approval.

Self-check complete for #22. Automated calculator/session-history tests passed. Ready for human approval — please do not treat prior bot reviews as the required approval.
Vylpes scheduled this pull request to auto merge when all checks succeed 2026-11-23 12:32:33 +00:00
Smithy-bot approved these changes 2026-11-26 11:01:28 +00:00
Smithy-bot left a comment

Approved (re-request on HEAD f4f1232 — no new commits since my 2026-11-20 review).

Multi-operation parsing still looks correct: tokenized left-to-right evaluation with unary minus handling, trailing-operator rejection, and mid-chain divide-by-zero surfacing as DivisionByZero. GUI chaining matches CLI via shared apply_operation folding. README documents no-precedence behavior with a concrete example, and tests cover chains, whitespace, invalid tokens, and 5 / 0 * 6. Good to merge for #22.

**Approved** (re-request on HEAD `f4f1232` — no new commits since my 2026-11-20 review). Multi-operation parsing still looks correct: tokenized left-to-right evaluation with unary minus handling, trailing-operator rejection, and mid-chain divide-by-zero surfacing as `DivisionByZero`. GUI chaining matches CLI via shared `apply_operation` folding. README documents no-precedence behavior with a concrete example, and tests cover chains, whitespace, invalid tokens, and `5 / 0 * 6`. Good to merge for #22.
Vylpes merged commit 514161e7e8 into release/0.1.0 2026-11-26 14:33:05 +00:00
Vylpes deleted branch feature/22-multiple-operations 2026-11-26 14:33:05 +00:00
Sign in to join this conversation.
No description provided.