You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a problem that showed up when attempting #264 in #345: We need the ability to take a bunch of IR objects like expressions from one component and define the same ASTs into another component. The problem is that the leaf of these components are parameters which need to renamed to something that the new component understands.
This is something ir::Subst can almost do but it only allows you to do it in the same component. We need to define some methods on it to allow Subst and rewrite into another component. The approach is simple: copy the code from ir::Subst and define from_comp and to_comp to rewrite values from one component into another. Use the provided ir::Bind to remap the leaves.
The text was updated successfully, but these errors were encountered:
This is a problem that showed up when attempting #264 in #345: We need the ability to take a bunch of IR objects like expressions from one component and define the same ASTs into another component. The problem is that the leaf of these components are parameters which need to renamed to something that the new component understands.
This is something
ir::Subst
can almost do but it only allows you to do it in the same component. We need to define some methods on it to allowSubst
and rewrite into another component. The approach is simple: copy the code fromir::Subst
and definefrom_comp
andto_comp
to rewrite values from one component into another. Use the providedir::Bind
to remap the leaves.The text was updated successfully, but these errors were encountered: