Re: Qi Seems Great
- From: Marco Antoniotti <marcoxa@xxxxxxxxx>
- Date: Fri, 1 May 2009 01:42:01 -0700 (PDT)
On Apr 30, 10:59 pm, Scott Burson <FSet....@xxxxxxxxx> wrote:
On Apr 30, 1:13 pm, Marco Antoniotti <marc...@xxxxxxxxx> wrote:
On Apr 30, 8:21 pm, Scott Burson <FSet....@xxxxxxxxx> wrote:
On Apr 30, 10:15 am, Tamas K Papp <tkp...@xxxxxxxxx> wrote:
And you can also use pattern matching libraries already available in
CL -- there is no need to change languages for that.
Yes, I have a copy of Faré-matcher, but haven't gotten around to
actually trying it. The kind of code I've been writing lately
wouldn't have much use for it. I'm sure that will change at some
point.
That's because you should try CL-UNIFICATION (shameless plug)
instead. Bigger is better. :)
Okay, I'll take a look at some point. Does it do iterative
(nondeterministic) matching?
You should explain. Either you do unification-style, i.e. structural
matching, or you do language matching using automata etc. CL-
UNIFICATION is a full blown CL structural matcher that sticks to CL
look'n'feel. It is not a language-based matcher. You can do
CL-USER 2 > (unify:unify #T(vector 42 &rest ?x) #(?qd 2 3 4))
#<UNIFY ENVIRONMENT: 1 frame 21BAD7AF>
CL-USER 3 > (unify:v? '?x *)
#(2 3 4)
T
CL-USER 4 > (unify:v? '?qd **)
42
T
It also works on structures and instances. You can also do
(unify:unify #T(unify:regex "a(b*)") "abbbbbb")
but this is a trick made possible by Edi Weitz.
As per your request, you should define what you want. I still bet
that CL-UNIFICATION is good foundation upon which to build it.
Cheers
--
Marco
.
- Follow-Ups:
- Re: Qi Seems Great
- From: Scott Burson
- Re: Qi Seems Great
- References:
- Re: Qi Seems Great
- From: Tamas K Papp
- Re: Qi Seems Great
- From: Scott Burson
- Re: Qi Seems Great
- From: Marco Antoniotti
- Re: Qi Seems Great
- From: Scott Burson
- Re: Qi Seems Great
- Prev by Date: Exit hooks interface
- Next by Date: Re: Qi Seems Great
- Previous by thread: Re: Qi Seems Great
- Next by thread: Re: Qi Seems Great
- Index(es):
Relevant Pages
|