src/Pure/PIDE/resources.ML
changeset 68089 d934bbfeac32
parent 68088 0763d4eb3ebc
child 68090 7c8ed28dd40a
equal deleted inserted replaced
68088:0763d4eb3ebc 68089:d934bbfeac32
    34   val provide_parse_files: string -> (theory -> Token.file list * theory) parser
    34   val provide_parse_files: string -> (theory -> Token.file list * theory) parser
    35   val loaded_files_current: theory -> bool
    35   val loaded_files_current: theory -> bool
    36   val check_path: Proof.context -> Path.T -> string * Position.T -> Path.T
    36   val check_path: Proof.context -> Path.T -> string * Position.T -> Path.T
    37   val check_file: Proof.context -> Path.T -> string * Position.T -> Path.T
    37   val check_file: Proof.context -> Path.T -> string * Position.T -> Path.T
    38   val check_dir: Proof.context -> Path.T -> string * Position.T -> Path.T
    38   val check_dir: Proof.context -> Path.T -> string * Position.T -> Path.T
    39   val export: {theory_name: string, path: string, compress: bool} -> Output.output list -> unit
    39   val export_message: Markup.export_args -> Output.output list -> unit
       
    40   val export: theory -> string -> Output.output -> unit
    40 end;
    41 end;
    41 
    42 
    42 structure Resources: RESOURCES =
    43 structure Resources: RESOURCES =
    43 struct
    44 struct
    44 
    45 
   297 end;
   298 end;
   298 
   299 
   299 
   300 
   300 (* export *)
   301 (* export *)
   301 
   302 
   302 fun export {theory_name, path, compress} output =
   303 val export_message = Output.try_protocol_message o Markup.export;
   303   let
   304 
   304     val props =
   305 fun export thy path output =
   305       Markup.export
   306   export_message
   306         {id = Position.get_id (Position.thread_data ()),
   307    {id = Position.get_id (Position.thread_data ()),
   307           theory_name = theory_name, path = path, compress = compress};
   308     theory_name = Context.theory_long_name thy,
   308   in Output.try_protocol_message props output end;
   309     path = path,
       
   310     compress = true} [output];
   309 
   311 
   310 end;
   312 end;