unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Pattern matching issues
@ 2011-07-12 21:05 Panicz Maciej Godek
  2011-07-12 22:21 ` Ludovic Courtès
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Panicz Maciej Godek @ 2011-07-12 21:05 UTC (permalink / raw)
  To: guile-user

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-25 10:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-07-25 10:44   ` Andy Wingo

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).