src/Pure/PIDE/protocol.scala
changeset 56387 d92eb5c3960d
parent 56372 fadb0fef09d7
child 56395 0546e036d1c0
equal deleted inserted replaced
56386:fe520afb8041 56387:d92eb5c3960d
   323     else set
   323     else set
   324   }
   324   }
   325 }
   325 }
   326 
   326 
   327 
   327 
   328 trait Protocol extends Isabelle_Process
   328 trait Protocol extends Prover
   329 {
   329 {
   330   /* inlined files */
   330   /* options */
       
   331 
       
   332   def options(opts: Options): Unit =
       
   333     protocol_command("Prover.options", YXML.string_of_body(opts.encode))
       
   334 
       
   335 
       
   336   /* interned items */
   331 
   337 
   332   def define_blob(digest: SHA1.Digest, bytes: Bytes): Unit =
   338   def define_blob(digest: SHA1.Digest, bytes: Bytes): Unit =
   333     protocol_command_raw("Document.define_blob", Bytes(digest.toString), bytes)
   339     protocol_command_bytes("Document.define_blob", Bytes(digest.toString), bytes)
   334 
       
   335 
       
   336   /* commands */
       
   337 
   340 
   338   def define_command(command: Command): Unit =
   341   def define_command(command: Command): Unit =
   339   {
   342   {
   340     val blobs_yxml =
   343     val blobs_yxml =
   341     { import XML.Encode._
   344     { import XML.Encode._