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

[math example] Expected precedence not matching #27

Closed
mrcosta opened this issue Feb 7, 2020 · 1 comment
Closed

[math example] Expected precedence not matching #27

mrcosta opened this issue Feb 7, 2020 · 1 comment

Comments

@mrcosta
Copy link

mrcosta commented Feb 7, 2020

Hi, I'm trying to use the math parser in a project and I noticed that some examples don't work as expected (or am I'm using incorrectly maybe). I'm trying to fix the issue myself but I could use some help.

minimum example:

initial expression: 1 + (2) / 2
expected expression: +(/(2, 2), 1)
current result: /(+(1, 2), 2)

This also happens with the one written in the documentation: ( 1 + 2 ) * 2 * 2+( 3 * 5 ) / 2 / 2 + 0.25

Let me know if is something wrong on my side or if I can help in somehow (and thanks a lot for the library)

@GregRos
Copy link
Owner

GregRos commented Sep 6, 2023

Thank you! I think one of the changes I made in the library broke the example and I hadn't noticed.

I don't like how it's written so I just removed it for now. I'll write another math example in the future.

@GregRos GregRos closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants