Skip to content

Commit

Permalink
patterns 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpilot committed Sep 7, 2010
0 parents commit f5fad75
Show file tree
Hide file tree
Showing 30 changed files with 3,621 additions and 0 deletions.
53 changes: 53 additions & 0 deletions CHANGES
@@ -0,0 +1,53 @@
0.4

Changes from 0.3

* Patterns is now packaged as a library that makes it easy to extend
pattern matching. Lazy patterns are still available, but as an
application of the library rather than as a hard-coded extension.

* Pattern guards are gone for now. The intention is to restore them
in a future release, as an optional package implemented as an
application of the library rather than a hardcoded extension.

* Patterns should now coexist more happily with other extensions.

* Lots of examples, e.g. an implementation of conjunctive patterns.
See the `applications' directory.

* Everything now works with both original and revised.

* A number of bug fixes and a more robust, completely functional,
implementation.

* The MIT License is included in the source tarball. (This is just
a packaging change, not a change of license.)

------------------------------------------------------------------------------
0.3

Changes from 0.2:

* Lazy patterns

------------------------------------------------------------------------------
0.2

Changes from 0.1:

* A new design for pattern guards which allows with-bindings within
top-level or-patterns (see the documentation)

* Fewer warnings in generated code: patterns that cannot fail now
generate `let'-bindings rather than `match'-bindings.

* More efficient code generated in many cases: for example no
reference cell is generated when there are no conditional
patterns in the `with' guards.

* Documentation (see http://code.google.com/p/ocaml-patterns/wiki/PatternGuards)

------------------------------------------------------------------------------
0.1

Initial release
20 changes: 20 additions & 0 deletions COPYING
@@ -0,0 +1,20 @@
Copyright (c) 2008 Jeremy Yallop

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 8 additions & 0 deletions Makefile
@@ -0,0 +1,8 @@
OCAMLMAKEFILE = ./OCamlMakefile

SOURCES := traverse.mli traverse.ml patterns.ml
USE_CAMLP4 := yes

all: traverse.cmi traverse.cmo patterns.cmo

include $(OCAMLMAKEFILE)

0 comments on commit f5fad75

Please sign in to comment.