aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/command.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-04 16:58:20 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-04 16:58:20 +0000
commit783bdffba901a29027878f41e10b6bcfe406100f (patch)
tree9c06d41adc21f0306e612d0897eb80667c0bf8b4 /toplevel/command.ml
parentffafed95378e41b4c0ad57ab1c5664d3387a11d9 (diff)
Nettoyage de l'interface de Pfedit
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@415 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r--toplevel/command.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index 2f755b4e3..93426fde9 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -372,3 +372,11 @@ let build_scheme lnamedepindsort =
declare 0 lrecnames;
if is_verbose() then pPNL(recursive_message lrecnames)
+let start_proof_com s stre com =
+ let env = Global.env () in
+ Pfedit.start_proof s stre env (interp_type Evd.empty env com)
+
+let get_current_context () =
+ try Pfedit.get_current_goal_context ()
+ with e when Logic.catchable_exception e ->
+ (Evd.empty, Global.env())