src/Pure/Thy/thy_info.ML
changeset 60937 51425cbe8ce9
parent 59366 e94df7f6b608
child 60975 5f3d6e16ea78
equal deleted inserted replaced
60936:2751f7f31be2 60937:51425cbe8ce9
     8 signature THY_INFO =
     8 signature THY_INFO =
     9 sig
     9 sig
    10   val get_names: unit -> string list
    10   val get_names: unit -> string list
    11   val lookup_theory: string -> theory option
    11   val lookup_theory: string -> theory option
    12   val get_theory: string -> theory
    12   val get_theory: string -> theory
       
    13   val pure_theory: unit -> theory
    13   val master_directory: string -> Path.T
    14   val master_directory: string -> Path.T
    14   val remove_thy: string -> unit
    15   val remove_thy: string -> unit
    15   val use_theories:
    16   val use_theories:
    16     {document: bool, last_timing: Toplevel.transition -> Time.time option, master_dir: Path.T} ->
    17     {document: bool, last_timing: Toplevel.transition -> Time.time option, master_dir: Path.T} ->
    17     (string * Position.T) list -> unit
    18     (string * Position.T) list -> unit
    97 
    98 
    98 fun get_theory name =
    99 fun get_theory name =
    99   (case lookup_theory name of
   100   (case lookup_theory name of
   100     SOME theory => theory
   101     SOME theory => theory
   101   | _ => error ("Theory loader: undefined entry for theory " ^ quote name));
   102   | _ => error ("Theory loader: undefined entry for theory " ^ quote name));
       
   103 
       
   104 fun pure_theory () = get_theory "Pure";
   102 
   105 
   103 val get_imports = Resources.imports_of o get_theory;
   106 val get_imports = Resources.imports_of o get_theory;
   104 
   107 
   105 
   108 
   106 
   109