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 parsing for boolean expressions starting with negation #66

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

ciobis
Copy link

@ciobis ciobis commented Nov 19, 2021

Fixed antlr grammar to correctly resolve boolean expressions starting with negation.
Before fix:
Expression !True && False:

  • would resolve to true which is wrong.
  • antlr would parse it to: Negate(And(Property("True"), Property("False")))

After fix:
Expression !True && False:

  • would resolve to false as expected.
  • antlr would parse it to: And(Negate(Property("True")), Property("False"))

Also created PR to update compliance tests.
Issue link: #65

@iconara
Copy link
Collaborator

iconara commented Nov 19, 2021

Awesome, thank you for the contribution. I will try to merge this and deploy a new version as soon as I can, but apologies if it takes a few days.

Copy link
Collaborator

@iconara iconara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that you included the two tests in addition to the PR on the compliance test suite.

@ciobis
Copy link
Author

ciobis commented Nov 23, 2021

Thanks for approval. Do you have expected date for a new version to be deployed?

@iconara iconara merged commit c9cb9f3 into burtcorp:master Dec 4, 2021
@iconara
Copy link
Collaborator

iconara commented Dec 4, 2021

v0.5.1 has been released and should show up in Maven central soon.

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

Successfully merging this pull request may close these issues.

2 participants