]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/matita.ml
huge commit regarding universes:
[helm.git] / helm / software / matita / matita.ml
index 1b4cc5a3cd495042c550710f699a84b1685229ba..1bfdf8ce372c49ab9cf93afa6a2ffd1c26ab8577 100644 (file)
@@ -95,7 +95,7 @@ let _ =
     sequents_viewer#reset;
     match grafite_status#proof_status with
     | Incomplete_proof ({ stack = stack } as incomplete_proof) ->
-        sequents_viewer#load_sequents incomplete_proof;
+        sequents_viewer#load_sequents grafite_status incomplete_proof;
         (try
           script#setGoal (Some (Continuationals.Stack.find_goal stack));
           let goal =
@@ -103,24 +103,24 @@ let _ =
               None -> assert false
             | Some n -> n
           in
-           sequents_viewer#goto_sequent goal
+           sequents_viewer#goto_sequent grafite_status goal
         with Failure _ -> script#setGoal None);
     | Proof proof -> sequents_viewer#load_logo_with_qed
     | No_proof ->
-       (match grafite_status#ng_status with
-           ProofMode nstatus ->
-            sequents_viewer#nload_sequents nstatus;
+       (match grafite_status#ng_mode with
+           `ProofMode ->
+            sequents_viewer#nload_sequents grafite_status;
             (try
               script#setGoal
-               (Some (Continuationals.Stack.find_goal nstatus#stack));
+               (Some (Continuationals.Stack.find_goal grafite_status#stack));
               let goal =
                match script#goal with
                   None -> assert false
                 | Some n -> n
               in
-               sequents_viewer#goto_sequent goal
+               sequents_viewer#goto_sequent grafite_status goal
             with Failure _ -> script#setGoal None);
-         | CommandMode _ -> sequents_viewer#load_logo
+         | `CommandMode -> sequents_viewer#load_logo
        )
     | Intermediate _ -> assert false (* only the engine may be in this state *)
   in
@@ -141,7 +141,7 @@ let _ =
       ignore (GMenu.separator_item ~packing:gui#main#debugMenu_menu#append ())
     in
     addDebugItem "dump aliases" (fun _ ->
-      let status = GrafiteTypes.get_estatus script#grafite_status in
+      let status = script#grafite_status in
       LexiconEngine.dump_aliases HLog.debug "" status);
 (* FG: DEBUGGING   
     addDebugItem "dump interpretations" (fun _ ->