aboutsummaryrefslogtreecommitdiff
path: root/intf
diff options
context:
space:
mode:
authorArnaud Spiwack2014-12-12 16:58:32 +0100
committerArnaud Spiwack2014-12-12 19:23:16 +0100
commit180af0dde65e4532cdeb13ec9aa43d8e83f7408f (patch)
tree745b35e71e0ba4124cd3418edba60488ce9856b8 /intf
parenta5ccde6f22deb1a1a2d59d3b532f74c217a05aee (diff)
Add Ltac syntax for the [tclIFCATCH] primitive.
[tryif t then t2 else t3] behaves like [t;t2] if [t] has at least one success, or [t3] otherwise. It generalises [t||t3] as failures from [t2] will not be caught.
Diffstat (limited to 'intf')
-rw-r--r--intf/tacexpr.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/intf/tacexpr.mli b/intf/tacexpr.mli
index efe62f569c..0c2b754788 100644
--- a/intf/tacexpr.mli
+++ b/intf/tacexpr.mli
@@ -251,6 +251,10 @@ and 'a gen_tactic_expr =
'a gen_tactic_expr
| TacExactlyOnce of
'a gen_tactic_expr
+ | TacIfThenCatch of
+ 'a gen_tactic_expr *
+ 'a gen_tactic_expr *
+ 'a gen_tactic_expr
| TacOrelse of
'a gen_tactic_expr *
'a gen_tactic_expr