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

Out-of-order parsing for expressions like "3+2-1*7" #54

Open
Vlek opened this issue Mar 31, 2022 · 0 comments
Open

Out-of-order parsing for expressions like "3+2-1*7" #54

Vlek opened this issue Mar 31, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Projects
Milestone

Comments

@Vlek
Copy link
Owner

Vlek commented Mar 31, 2022

We are currently showing out of order parsing for the given expression. This does not appear to cause any issues with the end result however, but it does cause the verbose output to show incorrect information.

Currently, using verbose output, we get:

❯ roll "3+2-1*7" -v
Adding: 3 + 2 = 5
Multiplying: 1 * 7 = 7
Subtracting: 5 - 7 = -2
-2

The expected output would have the addition happening after the multiplication.

@Vlek Vlek added the bug Something isn't working label Mar 31, 2022
@Vlek Vlek added this to the 3.0 milestone Mar 31, 2022
@Vlek Vlek self-assigned this Mar 31, 2022
@Vlek Vlek added this to To do in Roll 3.0 via automation Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant