Add support for multiple operations in one expression #45
No reviewers
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/calculator!45
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/22-multiple-operations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#22
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_operationfolds pending ops before chaining (including keyboard paths) and handles divide-by-zero without leaving stale state. Tests cover chains, whitespace, and invalid input.New commits pushed, approval review dismissed automatically according to repository settings
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. GUIapply_operationfolds 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.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.
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 sharedapply_operationfolding. README documents no-precedence behavior with a concrete example, and tests cover chains, whitespace, invalid tokens, and5 / 0 * 6. Good to merge for #22.