source: project/wiki/pmatch @ 9519

Last change on this file since 9519 was 9519, checked in by sjamaan, 12 years ago

Add wikified pmatch docs

File size: 1.4 KB
Line 
1[[tags: egg]]
2
3== pmatch
4
5[[toc:]]
6
7=== Description
8
9Macroless ML-style pattern matching.
10
11=== Author
12
13Mayer Goldberg.  Packaged as a Chicken extension by Category 5.
14
15=== Requirements
16
17None
18
19=== Download
20
21[[http://www.call-with-current-continuation.org/eggs/pmatch.egg|pmatch.egg]]
22
23=== Documentation
24
25In the words of the author:
26
27  This pattern matcher implements ML-style pattern matching in Scheme
28  relatively painlessly. I use it whenever I need to name various
29  sub-expressions of some sexpr, and refer to them by those names. The
30  package is built on the two procedures 'with' and
31  'match'. The 'with' procedure has been one of my favourite
32  Scheme idioms for quite a while, and you can certainly use it apart [from] any
33  pattern matching. The 'match' procedure is a recent addition to the
34  bag-o'-tricks.
35
36The only change made to the author's original code is the renaming of
37the {{match}} procedure to {{pmatch}} to avoid conflict with Chicken's
38built-in {{match}}.
39
40The following procedures are provided:
41
42<procedure>pmatch</procedure>
43<procedure>map-match</procedure>
44<procedure>?</procedure>
45<procedure>with</procedure>
46<procedure>match-struct</procedure>
47<procedure>compose-match</procedure>
48<procedure>compose-match-list</procedure>
49
50Please see
51[[http://www.cs.bgu.ac.il/~gmayer/interests-programming-languages/scheme/patterns/|the author's documentation]]
52for more information.
53
54=== License
55
56This code is in the public domain
Note: See TracBrowser for help on using the repository browser.