From: Linas Vepstas <linasvepstas@gmail.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: Pattern matching issues
Date: Sat, 23 Jul 2011 13:44:04 -0500 [thread overview]
Message-ID: <CAHrUA34SG2sDhV=RJO0WHgDkJaZjmQPve+CsqHhyierDT1tKSw@mail.gmail.com> (raw)
In-Reply-To: <CAMFYt2YHML0d_rn1HGqRxZc==TjmS1v33-WjDW9f+6NeARCNeg@mail.gmail.com>
On 12 July 2011 16:05, Panicz Maciej Godek <godek.maciek@gmail.com> wrote:
> As we all know, The guile module (ice-9 match) includes an
> implementation for a pattern matcher as specified by Andrew K. Wright.
> I've recently been reading a book by Peter Norvig, where he came up
> with the following notation for what he called "Segment Pattern
> Matching" (in Common Lisp):
>
> (pat-match '((?* ?p) need (?* ?x)) '(Mr Hulot and I need a vacation))
out of curiosity, do either the guile pattern matcher, or Norvig's,
operate on structures (lists of lists, etc) rather than just on strings?
Just asking out of curiosity; I maintain a pattern matcher for a
different project; it does pattern matching on arbitrary directed
graphs (equivalently, more or less, on terms in a term algebra).
Its used to implement queries against a database-like collection
of terms. (this is for the OpenCog project)
--linas
next prev parent reply other threads:[~2011-07-23 18:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 21:05 Pattern matching issues Panicz Maciej Godek
2011-07-12 22:21 ` Ludovic Courtès
2011-07-13 5:40 ` Marco Maggi
2011-07-13 10:42 ` Panicz Maciej Godek
2011-07-23 18:44 ` Linas Vepstas [this message]
2011-07-25 10:44 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHrUA34SG2sDhV=RJO0WHgDkJaZjmQPve+CsqHhyierDT1tKSw@mail.gmail.com' \
--to=linasvepstas@gmail.com \
--cc=godek.maciek@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).