You should really look at how the lint tool works.
In particular, look at "lint" and see how it looks for a word which has a
definition that is contained in another word (where the second word should
be calling the first instead of duplicating its definition).
Your version could look for common subsequences instead, perhaps.
You'll want to filter out subsequences of 1, and probably some simple
things like "0 >" which probably isn't worth factoring out.
Best,
John.
On Wed, Apr 10, 2013 at 11:26 AM, leonard <leonard14...@gmail.com> wrote:
>
> Luckily, building the AST is work you don't need to do, because that's how
>> Factor code is already represented:
>>
>
> Looks like the next step is to define how to determine whether two pieces
> of code are equivalent.
>
> Seems like this would involve the sequences.deep vocabulary.
>
> https://docs.factorcode.org/content/article-sequences.deep.html
>
> Are there other words for operating on nested sequences?
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk