diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2016-11-07 16:03:53 +0100 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2017-02-10 13:05:23 +0100 |
commit | f30822ba46d08d65597e0e3230ea6ad86c98453f (patch) | |
tree | 0b938d18a8f38f3ca08969e022ffa55f1fd676fa /tactics/tacticals.ml | |
parent | ebbc4a8cf3dde3b18388f3723b1641ba5511db9b (diff) |
Proofview: tclINDEPENDENTL
Diffstat (limited to 'tactics/tacticals.ml')
-rw-r--r-- | tactics/tacticals.ml | 13 |
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 |