We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RewriteRule
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
Hey,
I really like the Julia macro solution for constructing rules with @rule in Metatheory. Now, I would like to construct RewriteRules at run-time.
@rule
Metatheory.
RewriteRules
However, the expanded macro (Base.remove_linenums! for better readability)
Base.remove_linenums!
Base.remove_linenums!(@macroexpand @rule :a --> 1)
is pretty verbose.
What would be the standard way to construct a RewriteRule at run-time, then? Preferably, I would like to have something like
a = :a b =1 r = RewriteRule(a, -->, b)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey,
I really like the Julia macro solution for constructing rules with
@rule
inMetatheory.
Now, I would like to constructRewriteRules
at run-time.However, the expanded macro (
Base.remove_linenums!
for better readability)is pretty verbose.
What would be the standard way to construct a
RewriteRule
at run-time, then? Preferably, I would like to have something likeThe text was updated successfully, but these errors were encountered: