aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics/tacticals.ml
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-11-07 16:03:53 +0100
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2017-02-10 13:05:23 +0100
commitf30822ba46d08d65597e0e3230ea6ad86c98453f (patch)
tree0b938d18a8f38f3ca08969e022ffa55f1fd676fa /tactics/tacticals.ml
parentebbc4a8cf3dde3b18388f3723b1641ba5511db9b (diff)
Proofview: tclINDEPENDENTL
Diffstat (limited to 'tactics/tacticals.ml')
-rw-r--r--tactics/tacticals.ml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tactics/tacticals.ml b/tactics/tacticals.ml
index 93c04e373..c5562b326 100644
--- a/tactics/tacticals.ml
+++ b/tactics/tacticals.ml
@@ -368,6 +368,16 @@ module New = struct
catch_failerror e <*> t2
end
end
+
+ let tclORELSE0L t1 t2 =
+ tclINDEPENDENTL begin
+ tclORELSE
+ t1
+ begin fun e ->
+ catch_failerror e <*> t2
+ end
+ end
+
let tclORELSE t1 t2 =
tclORELSE0 (tclPROGRESS t1) t2
@@ -419,6 +429,9 @@ module New = struct
let tclTRY t =
tclORELSE0 t (tclUNIT ())
+
+ let tclTRYb t =
+ tclORELSE0L (t <*> tclUNIT true) (tclUNIT false)
let tclIFTHENELSE t1 t2 t3 =
tclINDEPENDENT begin