AST equality test that ignores NodeInfo

Bueno, Denis denbuen at sandia.gov
Thu Feb 26 15:10:25 EST 2009


On 02/26/2009 10:08 , "Gregory Crosswhite" <gcross at u.washington.edu> wrote:

> If you're not familiar with the "Scrap-Your-Boilerplate" style, what
> this code basically does is create a transformer which has specific
> behaviours for the two explicitly given types and acts as the identity
> on all other types, and the "everywhere" function goes through the
> data structure and applies the transformer to all of the terms/
> subterms in the AST.

Sweet.  This is great.  But how do I compare the resulting ASTs?  Language-c
does not provide an Eq instance for its data types.  Is there some way to do
with via the SYB approach?
                              Denis





More information about the Language-c mailing list