Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f5fad75
Showing
30 changed files
with
3,621 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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) |
Oops, something went wrong.