-
Notifications
You must be signed in to change notification settings - Fork 38
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
Implement parameterised rules #70
Comments
This is a duplicate of #32. |
If you say so, but it was intended to be something much simpler.
Basically just a way to avoid some repetition. |
It can't quite be that simple:
This is ambiguous between a parameterized rule and a sequence. |
So it would appear. The usual way of resolving this ambiguity is by significant whitespace.
The compiler will pick up any errors, assuming the rule either does or does not have a parameter. |
The basic idea is to use the existing label syntax, but allow labels to be passed as parameters into a rule, where it can be used as a rule, or to replace a literal, or to pass into another rule.
IronMeta has this feature.
The text was updated successfully, but these errors were encountered: