diff options
| author | ppedrot | 2011-11-25 16:18:00 +0000 |
|---|---|---|
| committer | ppedrot | 2011-11-25 16:18:00 +0000 |
| commit | 90aab584680d4fab9286eafe0a2e918df8889c53 (patch) | |
| tree | 506d3c552aaec6e90158cde307ddd191a2627d12 /ide/ideproof.ml | |
| parent | 624f4dc573c5f7d974af41cbae2b85457ff0f3bb (diff) | |
Separated the toplevel interface into a purely declarative module with associated types (interface.mli), and an applicative part processing the calls (previous ide_intf).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14730 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide/ideproof.ml')
| -rw-r--r-- | ide/ideproof.ml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ide/ideproof.ml b/ide/ideproof.ml index 61b9f73621..ddfc721e90 100644 --- a/ide/ideproof.ml +++ b/ide/ideproof.ml @@ -36,7 +36,7 @@ let hook_tag_cb tag menu_content sel_cb hover_cb = let mode_tactic sel_cb (proof:GText.view) goals hints = match goals with | [] -> assert false - | { Ide_intf.goal_hyp = hyps; Ide_intf.goal_ccl = cur_goal; } :: rem_goals -> + | { Interface.goal_hyp = hyps; Interface.goal_ccl = cur_goal; } :: rem_goals -> let on_hover sel_start sel_stop = proof#buffer#remove_tag ~start:proof#buffer#start_iter @@ -86,7 +86,7 @@ let mode_tactic sel_cb (proof:GText.view) goals hints = match goals with proof#buffer#insert ~tags (cur_goal ^ "\n") in (* Insert remaining goals (no hypotheses) *) - let fold_goal i _ { Ide_intf.goal_ccl = g } = + let fold_goal i _ { Interface.goal_ccl = g } = proof#buffer#insert (goal_str i goals_cnt); proof#buffer#insert (g ^ "\n") in @@ -98,7 +98,7 @@ let mode_tactic sel_cb (proof:GText.view) goals hints = match goals with let mode_cesar (proof:GText.view) = function | [] -> assert false - | { Ide_intf.goal_hyp = hyps; Ide_intf.goal_ccl = cur_goal; } :: _ -> + | { Interface.goal_hyp = hyps; Interface.goal_ccl = cur_goal; } :: _ -> proof#buffer#insert " *** Declarative Mode ***\n"; List.iter (fun hyp -> proof#buffer#insert (hyp^"\n")) @@ -110,22 +110,22 @@ let mode_cesar (proof:GText.view) = function let display mode (view:GText.view) goals hints = view#buffer#set_text ""; match goals with - | Ide_intf.No_current_proof -> () - | Ide_intf.Proof_completed -> + | Interface.No_current_proof -> () + | Interface.Proof_completed -> view#buffer#insert "Proof Completed." - | Ide_intf.Unfocused_goals l -> + | Interface.Unfocused_goals l -> view#buffer#insert "This subproof is complete, but there are still unfocused goals:\n\n"; let iter goal = - let msg = Printf.sprintf "%s\n" goal.Ide_intf.goal_ccl in + let msg = Printf.sprintf "%s\n" goal.Interface.goal_ccl in view#buffer#insert msg in List.iter iter l - | Ide_intf.Uninstantiated_evars el -> + | Interface.Uninstantiated_evars el -> view#buffer#insert "No more subgoals but non-instantiated existential variables:\n\n"; let iter evar = let msg = Printf.sprintf "%s\n" evar in view#buffer#insert msg in List.iter iter el - | Ide_intf.Goals g -> + | Interface.Goals g -> mode view g hints |
