Support multiple operations in one expression #22

Open
opened 2025-09-20 13:09:52 +01:00 by Vylpes · 2 comments
Owner

Epic: #21


I want there the ability to support multiple operations in one expression, such as 5 + 2 * 6

Acceptance Criteria

GIVEN I am a user
WHEN I type in an expression with more than one operation
THEN the program will calculate this together

Subtasks

  • Add support for multiple operations
  • Hook into error handler for invalid expressions (5 + 2 *, 5 + * 6, 5 / 0 * 6, etc.)
  • Update tests

Notes

  • Left to right for now to keep the logic simpler
Epic: #21 --- I want there the ability to support multiple operations in one expression, such as `5 + 2 * 6` ## Acceptance Criteria GIVEN I am a user WHEN I type in an expression with more than one operation THEN the program will calculate this together ## Subtasks - [ ] Add support for multiple operations - [ ] Hook into error handler for invalid expressions (`5 + 2 *`, `5 + * 6`, `5 / 0 * 6`, etc.) - [ ] Update tests ## Notes - Left to right for now to keep the logic simpler
Vylpes added this to the 0.1.0 milestone 2025-09-20 13:09:52 +01:00
Author
Owner

Do we follow BIDMAS?

Do we follow BIDMAS?
Author
Owner

@Vylpes wrote in #22 (comment):

Do we follow BIDMAS?

Not for this, as it'll be easier not to, but perhaps at some point

@Vylpes wrote in https://git.vylpes.xyz/RabbitLabs/calculator/issues/22#issuecomment-18424: > Do we follow BIDMAS? Not for this, as it'll be easier not to, but perhaps at some point
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RabbitLabs/calculator#22
No description provided.