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

Map from EGraph<L, _> to EGraph<L2, _> #305

Closed
sgpthomas opened this issue Mar 20, 2024 · 1 comment
Closed

Map from EGraph<L, _> to EGraph<L2, _> #305

sgpthomas opened this issue Mar 20, 2024 · 1 comment

Comments

@sgpthomas
Copy link
Contributor

I want to use the babble library with an e-graph that I own. babble expects an EGraph over the AstNode<Op> (which implements egg::Language) type. I have an EGraph over my own language type, let's call it Lang, and it's trivial to write a function from Lang -> AstNode<Op>. However, as far as I can tell, there is not a good way to lift this into a function EGraph<Lang, _> -> EGraph<AstNode, _>`. Am I missing something in the library, or do you have a recommendation for how to do this?

@mwillsey
Copy link
Member

Closed by #306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants