diff options
author | Stephane Glondu <steph@glondu.net> | 2013-05-08 18:01:07 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2013-05-08 18:01:07 +0200 |
commit | 095eac936751bab72e3c6bbdfa3ede51f7198721 (patch) | |
tree | 44cf2859ba6b8486f056efaaf7ee6c2d855f2aae /lib/refutpat.ml4 | |
parent | 4e6d6dab2ef2de6c1ad7972fc981e55a4fde7ae3 (diff) | |
parent | 0b14713e3efd7f8f1cc8a06555d0ec8fbe496130 (diff) |
Merge branch 'experimental/master'
Diffstat (limited to 'lib/refutpat.ml4')
-rw-r--r-- | lib/refutpat.ml4 | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/refutpat.ml4 b/lib/refutpat.ml4 deleted file mode 100644 index db25ce73..00000000 --- a/lib/refutpat.ml4 +++ /dev/null @@ -1,33 +0,0 @@ -(************************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2011 *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(************************************************************************) - -(*i camlp4use: "pa_extend.cmo q_MLast.cmo" i*) - -open Pcaml - -(** * Non-irrefutable patterns - - This small camlp4 extension creates a "let*" variant of the "let" - syntax that allow the use of a non-exhaustive pattern. The typical - usage is: - - let* x::l = foo in ... - - when foo is already known to be non-empty. This way, no warnings by ocamlc. - A Failure is raised if the pattern doesn't match the expression. -*) - - -EXTEND - expr: - [[ "let"; "*"; p = patt; "="; e1 = expr; "in"; e2 = expr -> - <:expr< match $e1$ with - [ $p$ -> $e2$ - | _ -> failwith "Refutable pattern failed" - ] >> ]]; -END |