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

Fix incorrect parser behavior. #3

Open
DanilaFe opened this issue Aug 18, 2017 · 0 comments
Open

Fix incorrect parser behavior. #3

DanilaFe opened this issue Aug 18, 2017 · 0 comments
Labels

Comments

@DanilaFe
Copy link
Owner

Currently, the Shunting Yard based parser works well for all valid expressions (except for implicit grouping). However, it also works for some invalid expressions. For instance, 3+!4 parses to 3!+4, when it shouldn't parse at all. This error isn't caught during parse time because the re-ordered tokens are still valid, and should probably be caught during shunting yard itself.

@DanilaFe DanilaFe added the bug label Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant