Thanks!  Never thought to look at that.  I did get something going with the
lcs library, but this may be better.

On Sun, Feb 21, 2010 at 10:44 AM, Kobi Lurie <k_lu...@gbrener.org.il> wrote:

>  On 21/2/2010 16:28, Jim mack wrote:
> > I have some complicated datastructure, mixing containers & tuples,
> > like an ast.  I would like to get a report on what's different between
> > two of them, say for a test.  Is there an existing vocab for that?  It
> > won't need to be fast.  My first thought was to get the prettyprint
> > representations, then diff through an external tool.
>
> Hi Jim, do you know of mirrors?
>     I'm not sure if that's what you mean, but maybe something like this:
>
>     : obj-diff ( big small -- diff )
>        [ <mirror> >alist ] bi@ swap diff ;
>
>     TUPLE: xyz x y z ;
>     xyz new 4 >>z 2 >>x
>     xyz new 3 >>x
>
>     --- Data stack:
>     T{ xyz f 2 f 4 }
>     T{ xyz f 3 f f }
>     ( scratchpad - auto ) obj-diff .
>     { { "x" 3 } { "z" f } }
>
> Best Regards, Kobi
>
> --
> China: stop persecuting Falun Gong!
> http://faluninfo.net
>
> URGENT: Innocent people are being persecuted for their belief inside
> Communist China.
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
Jim
"I'm for extending the working Medicare program for our seniors all the way
back to contraception, so Americans can concentrate on living their lives
without fear of changing a job, going bankrupt from deductibles or fighting
HMO bureaucracy."
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to