AST equality test that ignores NodeInfo
Gregory Crosswhite
gcross at u.washington.edu
Thu Feb 26 16:12:29 EST 2009
Happily, there is indeed: just use "geq" in Data.Generics.Twins.
Cheers,
Greg
On Feb 26, 2009, at 12:10 PM, Bueno, Denis wrote:
> 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
>
>
>
> _______________________________________________
> Language-c mailing list
> Language-c at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/language-c
More information about the Language-c
mailing list