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

add_rule!(...) type coercion bug #49

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Conversation

ReubenJ
Copy link
Member

@ReubenJ ReubenJ commented Jan 19, 2024

Currently, the rule true is equivalent to the rule 1.
This means that if one of them already exists in the grammar,
the new one is skipped.

Changes:

  • Add test to show add_rule! type coercion bug
  • Use strict equality in add_rule!

Currently, the rule `true` is equivalent to the rule `1`.
This means that if one of them already exists in the grammar,
the new one is skipped.
@ReubenJ ReubenJ added the bug Something isn't working label Jan 19, 2024
@ReubenJ ReubenJ self-assigned this Jan 19, 2024
@THinnerichs THinnerichs self-assigned this Jan 19, 2024
@THinnerichs THinnerichs self-requested a review January 19, 2024 10:30
@THinnerichs THinnerichs merged commit ba2cdba into dev Jan 19, 2024
2 checks passed
@THinnerichs THinnerichs deleted the bug/add_rule_type_coercion branch January 19, 2024 10:32
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants