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 a new macro @rulenode #32

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Add a new macro @rulenode #32

merged 2 commits into from
Dec 12, 2024

Conversation

ReubenJ
Copy link
Member

@ReubenJ ReubenJ commented Dec 11, 2024

Allows for convenient RuleNode construction in the form RuleNodes are already printed in:

1{2,3} to construct RuleNode(1, [RuleNode(2), RuleNode(3)])

I'm not sure if @rulenode is the best name for this. Even shorter @rn? More verbose @make_rulenode? Open to suggestions.

@ReubenJ ReubenJ added the enhancement New feature or request label Dec 11, 2024
@ReubenJ ReubenJ self-assigned this Dec 11, 2024
Allows for convenient `RuleNode` construction
in the form `RuleNode`s are already printed in
(`1{2,3}` for `RuleNode(1, [RuleNode(2), RuleNode(3)]`)
@ReubenJ ReubenJ force-pushed the feat/rulenode-macro branch from 6998d08 to 11b714f Compare December 11, 2024 15:15
@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.48%. Comparing base (52359a7) to head (0b43022).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   73.54%   74.48%   +0.94%     
==========================================
  Files           2        2              
  Lines         189      196       +7     
==========================================
+ Hits          139      146       +7     
  Misses         50       50              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pwochner pwochner left a comment

Choose a reason for hiding this comment

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

Very nice macro, much more intuitive to use. I like the example how to use it in the docs, that's super useful.

@ReubenJ ReubenJ merged commit 5e2a950 into master Dec 12, 2024
5 checks passed
@ReubenJ ReubenJ deleted the feat/rulenode-macro branch December 12, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants