src/Pure/Interface/proof_general.ML
changeset 9497 01d0c66ce523
parent 9462 3ac87f80186d
child 9507 7903ca5fecf1
equal deleted inserted replaced
9496:07e33cac5d9c 9497:01d0c66ce523
   187 (* re-init process (an approximation) *)
   187 (* re-init process (an approximation) *)
   188 
   188 
   189 local
   189 local
   190 
   190 
   191 fun restart isar =
   191 fun restart isar =
   192  (ThyInfo.touch_all_thys ();
   192  (if isar then tell_clear_goals () else kill_goal ();
   193   if isar then tell_clear_goals () else kill_goal ();
       
   194   tell_clear_response ();
   193   tell_clear_response ();
   195   writeln (Session.welcome ()));
   194   writeln (Session.welcome ()));
   196 
   195 
   197 in
   196 in
   198 
   197 
   199 fun isa_restart () = restart false;
   198 fun isa_start () = restart false;
   200 fun isar_restart () = (restart true; raise Toplevel.RESTART);
   199 fun isa_restart () = (ThyInfo.touch_all_thys (); restart false);
       
   200 fun isar_restart () = (ThyInfo.touch_all_thys (); restart true; raise Toplevel.RESTART);
   201 
   201 
   202 end;
   202 end;
   203 
   203 
   204 
   204 
   205 (* outer syntax *)
   205 (* outer syntax *)
   259   print_mode := [proof_generalN];
   259   print_mode := [proof_generalN];
   260   set quick_and_dirty;
   260   set quick_and_dirty;
   261   ThmDeps.enable ();
   261   ThmDeps.enable ();
   262   if isar then ml_prompts "ML> " "ML# "
   262   if isar then ml_prompts "ML> " "ML# "
   263   else ml_prompts ("> " ^ oct_char "372") ("- " ^ oct_char "373");
   263   else ml_prompts ("> " ^ oct_char "372") ("- " ^ oct_char "373");
   264   if isar then Isar.sync_main () else isa_restart ());
   264   if isar then Isar.sync_main () else isa_start ());
   265 
   265 
   266 
   266 
   267 
   267 
   268 (** generate keyword classification file **)
   268 (** generate keyword classification file **)
   269 
   269