Out-of-order parsing for expressions like "3+2-1*7"
Vlek opened this issue · 0 comments
Vlek commented
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.