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

Named matches #2

Closed
igordejanovic opened this issue Aug 28, 2017 · 0 comments
Closed

Named matches #2

igordejanovic opened this issue Aug 28, 2017 · 0 comments
Assignees
Labels
Projects

Comments

@igordejanovic
Copy link
Owner

igordejanovic commented Aug 28, 2017

parglare reduction actions get their subresults by ordinal positions.

Named matches would provide getting subresults by names:

my_rule: first=first_match_rule second=second_match_rule;
first_match_rule: ...;
second_match_rule: ...;

Now in your action for my_rule you will get first and second as parameters.

This would make it easy to provide a new common action that will return a Python object with supplied parameters as object attributes.

@obj
my_rule: first=first_match_rule second=second_match_rule;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v0.5
Done
Development

No branches or pull requests

1 participant