From 0e36c8f0247cbd814cd82592e2722b052283b495 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Thu, 16 Jun 2016 11:53:53 +0200 Subject: Port build system to trunk (ssrmatching merged in Coq) --- mathcomp/ssreflect/plugin/v8.5/ssreflect.ml4 | 6 ++--- mathcomp/ssreflect/plugin/v8.5/ssreflect.mllib | 2 -- .../ssreflect/plugin/v8.5/ssreflect_plugin.mllib | 2 ++ mathcomp/ssreflect/plugin/v8.5/ssrmatching.v | 27 ++++++++++++++++++++++ 4 files changed, 32 insertions(+), 5 deletions(-) delete mode 100644 mathcomp/ssreflect/plugin/v8.5/ssreflect.mllib create mode 100644 mathcomp/ssreflect/plugin/v8.5/ssreflect_plugin.mllib create mode 100644 mathcomp/ssreflect/plugin/v8.5/ssrmatching.v (limited to 'mathcomp/ssreflect/plugin/v8.5') diff --git a/mathcomp/ssreflect/plugin/v8.5/ssreflect.ml4 b/mathcomp/ssreflect/plugin/v8.5/ssreflect.ml4 index c40d965..85a6fef 100644 --- a/mathcomp/ssreflect/plugin/v8.5/ssreflect.ml4 +++ b/mathcomp/ssreflect/plugin/v8.5/ssreflect.ml4 @@ -2,7 +2,7 @@ (* Distributed under the terms of CeCILL-B. *) (* This line is read by the Makefile's dist target: do not remove. *) -DECLARE PLUGIN "ssreflect" +DECLARE PLUGIN "ssreflect_plugin" let ssrversion = "1.6";; let ssrAstVersion = 1;; let () = Mltop.add_known_plugin (fun () -> @@ -11,7 +11,7 @@ let () = Mltop.add_known_plugin (fun () -> Printf.printf "Copyright 2005-2014 Microsoft Corporation and INRIA.\n"; Printf.printf "Distributed under the terms of the CeCILL-B license.\n\n" end) - "ssreflect" + "ssreflect_plugin" ;; (* Defining grammar rules with "xx" in it automatically declares keywords too, @@ -1011,7 +1011,7 @@ let pf_unabs_evars gl ise n c0 = type ssrargfmt = ArgSsr of string | ArgCoq of argument_type | ArgSep of string let ssrtac_name name = { - mltac_plugin = "ssreflect"; + mltac_plugin = "ssreflect_plugin"; mltac_tactic = "ssr" ^ name; } diff --git a/mathcomp/ssreflect/plugin/v8.5/ssreflect.mllib b/mathcomp/ssreflect/plugin/v8.5/ssreflect.mllib deleted file mode 100644 index 006b70f..0000000 --- a/mathcomp/ssreflect/plugin/v8.5/ssreflect.mllib +++ /dev/null @@ -1,2 +0,0 @@ -Ssrmatching -Ssreflect diff --git a/mathcomp/ssreflect/plugin/v8.5/ssreflect_plugin.mllib b/mathcomp/ssreflect/plugin/v8.5/ssreflect_plugin.mllib new file mode 100644 index 0000000..006b70f --- /dev/null +++ b/mathcomp/ssreflect/plugin/v8.5/ssreflect_plugin.mllib @@ -0,0 +1,2 @@ +Ssrmatching +Ssreflect diff --git a/mathcomp/ssreflect/plugin/v8.5/ssrmatching.v b/mathcomp/ssreflect/plugin/v8.5/ssrmatching.v new file mode 100644 index 0000000..311d494 --- /dev/null +++ b/mathcomp/ssreflect/plugin/v8.5/ssrmatching.v @@ -0,0 +1,27 @@ +(* (c) Copyright 2006-2015 Microsoft Corporation and Inria. *) +(* Distributed under the terms of CeCILL-B. *) + +Set Implicit Arguments. +Unset Strict Implicit. +Unset Printing Implicit Defensive. + +Module SsrMatchingSyntax. + +(* Reserve the notation for rewrite patterns so that the user is not allowed *) +(* to declare it at a different level. *) +Reserved Notation "( a 'in' b )" (at level 0). +Reserved Notation "( a 'as' b )" (at level 0). +Reserved Notation "( a 'in' b 'in' c )" (at level 0). +Reserved Notation "( a 'as' b 'in' c )" (at level 0). + +(* Notation to define shortcuts for the "X in t" part of a pattern. *) +Notation "( X 'in' t )" := (_ : fun X => t) : ssrpatternscope. +Delimit Scope ssrpatternscope with pattern. + +(* Some shortcuts for recurrent "X in t" parts. *) +Notation RHS := (X in _ = X)%pattern. +Notation LHS := (X in X = _)%pattern. + +End SsrMatchingSyntax. + +Export SsrMatchingSyntax. -- cgit v1.2.3