src/Pure/ML/ml_final.ML
changeset 62846 3c576c7f9731
child 62847 1bd1d8492931
equal deleted inserted replaced
62845:31177a9c3025 62846:3c576c7f9731
       
     1 (*  Title:      Pure/ML/ml_final.ML
       
     2     Author:     Makarius
       
     3 
       
     4 Final setup of ML environment.
       
     5 *)
       
     6 
       
     7 (*no access to system internals!*)
       
     8 structure PolyML = struct structure IntInf = PolyML.IntInf end;
       
     9 val _ = List.app ML_Name_Space.forget_structure ML_Name_Space.critical_structures;
       
    10 
       
    11 structure Output: OUTPUT = Output;  (*seal system channels!*)
       
    12 
       
    13 structure Pure = struct val thy = Thy_Info.pure_theory () end;
       
    14 
       
    15 fun use_thys args =
       
    16   Runtime.toplevel_program (fn () => Thy_Info.use_thys (map (rpair Position.none) args));
       
    17 val use_thy = use_thys o single;
       
    18 
       
    19 Proofterm.proofs := 0;
       
    20 
       
    21 Context.set_thread_data NONE;