-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: Calc operator precedence #838
Conversation
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :) 🦀
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.