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

feat: Calc operator precedence #838

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

maiadere
Copy link
Contributor

@maiadere maiadere commented Sep 1, 2024

This PR adds operator precedence which hasn't been implemented in #11. It also makes it easier to add parentheses support in the future (after #785 is merged). calc(100 + 250 * 2) will now return 600.

@maiadere maiadere requested a review from marc2332 as a code owner September 1, 2024 03:39
Copy link

codecov bot commented Sep 1, 2024

Codecov Report

Attention: Patch coverage is 98.47328% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.08%. Comparing base (91f185e) to head (6dd2b1b).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
crates/torin/src/values/size.rs 96.07% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
+ Coverage   75.93%   76.08%   +0.15%     
==========================================
  Files         203      205       +2     
  Lines       22914    23067     +153     
==========================================
+ Hits        17400    17551     +151     
- Misses       5514     5516       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marc2332 marc2332 added the enhancement 🔥 New feature or request label Sep 1, 2024
crates/torin/src/values/size.rs Show resolved Hide resolved
crates/torin/src/values/size.rs Outdated Show resolved Hide resolved
crates/torin/src/values/size.rs Outdated Show resolved Hide resolved
@maiadere maiadere requested a review from marc2332 September 8, 2024 19:01
Copy link
Owner

@marc2332 marc2332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :) 🦀

@marc2332 marc2332 merged commit 0ceb02f into marc2332:main Sep 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🔥 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants