src/Pure/PIDE/protocol.ML
changeset 52786 9795ea654905
parent 52775 e0169f13bd37
child 52808 143f225e50f5
equal deleted inserted replaced
52785:ecc7d8de4f94 52786:9795ea654905
     6 
     6 
     7 structure Protocol: sig end =
     7 structure Protocol: sig end =
     8 struct
     8 struct
     9 
     9 
    10 val _ =
    10 val _ =
    11   Isabelle_Process.protocol_command "echo" (fn args => List.app writeln args);
    11   Isabelle_Process.protocol_command "Isabelle_Process.echo"
       
    12     (fn args => List.app writeln args);
       
    13 
       
    14 val _ =
       
    15   Isabelle_Process.protocol_command "Isabelle_Process.options"
       
    16     (fn [options_yxml] =>
       
    17       let val options = Options.decode (YXML.parse_body options_yxml) in
       
    18         Options.set_default options;
       
    19         Future.ML_statistics := true;
       
    20         Multithreading.trace := Options.int options "threads_trace";
       
    21         Multithreading.max_threads := Options.int options "threads";
       
    22         Goal.parallel_proofs := (if Options.int options "parallel_proofs" > 0 then 3 else 0)
       
    23       end);
    12 
    24 
    13 val _ =
    25 val _ =
    14   Isabelle_Process.protocol_command "Document.define_command"
    26   Isabelle_Process.protocol_command "Document.define_command"
    15     (fn [id, name, text] =>
    27     (fn [id, name, text] =>
    16       Document.change_state (Document.define_command (Document_ID.parse id) name text));
    28       Document.change_state (Document.define_command (Document_ID.parse id) name text));