diff options
| author | aspiwack | 2013-11-02 15:38:41 +0000 |
|---|---|---|
| committer | aspiwack | 2013-11-02 15:38:41 +0000 |
| commit | af63420fe7202f01b483812bc1f5ff50c5a640e2 (patch) | |
| tree | eb124c5a451cb55a3080093994b14a8960251a68 /printing | |
| parent | a9cfc4691726ac248dc7bbc43bb5ae8a7db3233f (diff) | |
Adds a tactical once.
[once t] does just as [t] but has exactly one success it [t] has at least one success.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@17004 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing')
| -rw-r--r-- | printing/pptactic.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml index 61f758df01..f0d713be48 100644 --- a/printing/pptactic.ml +++ b/printing/pptactic.ml @@ -891,6 +891,10 @@ let rec pr_tac inherited tac = hov 1 (pr_tac (lorelse,L) t1 ++ str " +" ++ brk (1,1) ++ pr_tac (lorelse,E) t2), lorelse + | TacOnce t -> + (* arnaud: vérifier qu'il s'agit bien de la syntaxe définitive. *) + hov 1 (str "once" ++ spc () ++ pr_tac (ltactical,E) t), + ltactical | TacOrelse (t1,t2) -> hov 1 (pr_tac (lorelse,L) t1 ++ str " ||" ++ brk (1,1) ++ pr_tac (lorelse,E) t2), |
