aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2016-03-19 21:26:58 +0100
committerPierre-Marie Pédrot2016-03-19 21:36:45 +0100
commit64d9e1d1b9875c64613c7c5a95c696ab3e6f04cb (patch)
treefe88fa20c84cfaf1f0ed2e48ac6282059e05cb9f /tactics
parent25d49062425ee080d3e8d06920d3073e7a81b603 (diff)
Moving the use of Tactic_option from Obligations to G_obligations.
Diffstat (limited to 'tactics')
-rw-r--r--tactics/g_obligations.ml414
1 files changed, 10 insertions, 4 deletions
diff --git a/tactics/g_obligations.ml4 b/tactics/g_obligations.ml4
index e67d701218..4cd8bf1feb 100644
--- a/tactics/g_obligations.ml4
+++ b/tactics/g_obligations.ml4
@@ -19,16 +19,22 @@ open Constrexpr_ops
open Stdarg
open Constrarg
open Extraargs
-open Pcoq.Prim
-open Pcoq.Constr
-open Pcoq.Tactic
+
+let (set_default_tactic, get_default_tactic, print_default_tactic) =
+ Tactic_option.declare_tactic_option "Program tactic"
+
+let () =
+ (** Delay to recover the tactic imperatively *)
+ let tac = Proofview.tclBIND (Proofview.tclUNIT ()) begin fun () ->
+ snd (get_default_tactic ())
+ end in
+ Obligations.default_tactic := tac
(* We define new entries for programs, with the use of this module
* Subtac. These entries are named Subtac.<foo>
*)
module Gram = Pcoq.Gram
-module Vernac = Pcoq.Vernac_
module Tactic = Pcoq.Tactic
open Pcoq