From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: guile-user@gnu.org
Subject: Pattern matching issues
Date: Tue, 12 Jul 2011 23:05:26 +0200 [thread overview]
Message-ID: <CAMFYt2YHML0d_rn1HGqRxZc==TjmS1v33-WjDW9f+6NeARCNeg@mail.gmail.com> (raw)
Long time no see!
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))
should return ((?P MR HULLOT AND I) (?X A VACATION))
I've been wondering if there is a way to represent this sort of
pattern for the pattern matcher provided by Wright (and Guile).
Regards,
M.
next reply other threads:[~2011-07-12 21:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 21:05 Panicz Maciej Godek [this message]
2011-07-12 22:21 ` Pattern matching issues 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
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='CAMFYt2YHML0d_rn1HGqRxZc==TjmS1v33-WjDW9f+6NeARCNeg@mail.gmail.com' \
--to=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).