Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Basic Integer Operations (Addition, Subtraction, Multiplication, Division) #9

Open
4 tasks
kh3rld opened this issue Nov 12, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kh3rld
Copy link
Member

kh3rld commented Nov 12, 2024

Enable support for basic arithmetic operations with integers.

Tasks:

  • Define Add, Subtract, Multiply, and Divide methods in the interpreter for int values.
  • Update the parser to recognize and correctly parse these operations.
  • Implement operator precedence and ensure correct order of evaluation.
  • Add unit tests for each operation, including edge cases (e.g., division by zero).

Acceptance Criteria:

  • Basic arithmetic operations work as expected.
  • Division by zero and other edge cases return appropriate errors.
@kh3rld kh3rld added enhancement New feature or request good first issue Good for newcomers labels Nov 12, 2024
@JoabOwala
Copy link

JoabOwala commented Nov 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants