Support regular term rewriting? #177
Replies: 2 comments 1 reply
-
I agree that that is possible and a good idea in general, but I think there are a lot of API questions that would need to be ironed out. I would categorize this as a "major feature" to be added to egg, so it's on the todo list, but it might take a while. |
Beta Was this translation helpful? Give feedback.
-
I have an experimental branch of |
Beta Was this translation helpful? Give feedback.
-
Hi!
I would like to compare greedy rewriting (only apply rewrites that decrease term cost) to equality saturation without having to define the same rewrite rules twice. It could be useful if rewrite rules defined with egg could be also applied to regular terms and not only e-graphs?
I guess for
Pattern
s that should just be a matter of adding some new methods. ForSearcher
/Applier
/Rewrite
that might be more tricky, maybe for more advanced constructs I need to define my own rewrite macro/DSL to generate both term rewriting functions and e-graphRewrite
s.Beta Was this translation helpful? Give feedback.
All reactions