src/Pure/ProofGeneral/pgip_output.ML
changeset 22040 635aaa46b44d
parent 21940 fbd068dd4d29
child 22161 b2117f4f2d39
equal deleted inserted replaced
22039:9bc8058250a7 22040:635aaa46b44d
    16                                content: XML.content }
    16                                content: XML.content }
    17     | Errorresponse       of { fatality: PgipTypes.fatality, 
    17     | Errorresponse       of { fatality: PgipTypes.fatality, 
    18                                area: PgipTypes.displayarea option, 
    18                                area: PgipTypes.displayarea option, 
    19                                location: PgipTypes.location option, 
    19                                location: PgipTypes.location option, 
    20                                content: XML.content }
    20                                content: XML.content }
    21     | Informfileloaded    of { url: PgipTypes.pgipurl }
    21     | Informfileloaded    of { url: PgipTypes.pgipurl, completed: bool }
    22     | Informfileretracted of { url: PgipTypes.pgipurl }
    22     | Informfileoutdated  of { url: PgipTypes.pgipurl, completed: bool }
       
    23     | Informfileretracted of { url: PgipTypes.pgipurl, completed: bool }
    23     | Proofstate          of { pgml: XML.content }
    24     | Proofstate          of { pgml: XML.content }
    24     | Metainforesponse    of { attrs: XML.attributes, 
    25     | Metainforesponse    of { attrs: XML.attributes, 
    25                                content: XML.content }
    26                                content: XML.content }
    26     | Lexicalstructure    of { content: XML.content }
    27     | Lexicalstructure    of { content: XML.content }
    27     | Proverinfo          of { name: string, 
    28     | Proverinfo          of { name: string, 
    68          Cleardisplay        of { area: displayarea }
    69          Cleardisplay        of { area: displayarea }
    69        | Normalresponse      of { area: displayarea, urgent: bool, 
    70        | Normalresponse      of { area: displayarea, urgent: bool, 
    70                                   messagecategory: messagecategory, content: XML.content }
    71                                   messagecategory: messagecategory, content: XML.content }
    71        | Errorresponse       of { area: displayarea option, fatality: fatality, 
    72        | Errorresponse       of { area: displayarea option, fatality: fatality, 
    72                                   location: location option, content: XML.content }
    73                                   location: location option, content: XML.content }
    73        | Informfileloaded    of { url: Path.T }
    74        | Informfileloaded    of { url: Path.T, completed: bool }
    74        | Informfileretracted of { url: Path.T }
    75        | Informfileoutdated  of { url: Path.T, completed: bool }
       
    76        | Informfileretracted of { url: Path.T, completed: bool }
    75        | Proofstate          of { pgml: XML.content }
    77        | Proofstate          of { pgml: XML.content }
    76        | Metainforesponse    of { attrs: XML.attributes, content: XML.content }
    78        | Metainforesponse    of { attrs: XML.attributes, content: XML.content }
    77        | Lexicalstructure    of { content: XML.content }
    79        | Lexicalstructure    of { content: XML.content }
    78        | Proverinfo          of { name: string, version: string, instance: string,
    80        | Proverinfo          of { name: string, version: string, instance: string,
    79                                   descr: string, url: Url.T, filenameextns: string }
    81                                   descr: string, url: Url.T, filenameextns: string }
   142     end
   144     end
   143 
   145 
   144 fun informfileloaded (Informfileloaded vs) =
   146 fun informfileloaded (Informfileloaded vs) =
   145     let 
   147     let 
   146         val url = #url vs
   148         val url = #url vs
   147     in
   149         val completed = #completed vs
   148         XML.Elem ("informfileloaded", attrs_of_pgipurl url, [])
   150     in
       
   151         XML.Elem ("informfileloaded", 
       
   152 		  attrs_of_pgipurl url @ 
       
   153 		  (attr "completed" (PgipTypes.bool_to_pgstring completed)),
       
   154 		  [])
       
   155     end
       
   156 
       
   157 fun informfileoutdated (Informfileoutdated vs) =
       
   158     let 
       
   159         val url = #url vs
       
   160         val completed = #completed vs
       
   161     in
       
   162         XML.Elem ("informfileoutdated", 
       
   163 		  attrs_of_pgipurl url @ 
       
   164 		  (attr "completed" (PgipTypes.bool_to_pgstring completed)),
       
   165 		  [])
   149     end
   166     end
   150 
   167 
   151 fun informfileretracted (Informfileretracted vs) =
   168 fun informfileretracted (Informfileretracted vs) =
   152     let 
   169     let 
   153         val url = #url vs
   170         val url = #url vs
   154     in
   171         val completed = #completed vs
   155         XML.Elem ("informfileretracted", attrs_of_pgipurl url, [])
   172     in
       
   173         XML.Elem ("informfileretracted", 
       
   174 		  attrs_of_pgipurl url @ 
       
   175 		  (attr "completed" (PgipTypes.bool_to_pgstring completed)),
       
   176 		  [])
   156     end
   177     end
   157 
   178 
   158 fun proofstate (Proofstate vs) =
   179 fun proofstate (Proofstate vs) =
   159     let
   180     let
   160         val pgml = #pgml vs
   181         val pgml = #pgml vs
   326 fun output pgipoutput = case pgipoutput of
   347 fun output pgipoutput = case pgipoutput of
   327     Cleardisplay _          => cleardisplay pgipoutput
   348     Cleardisplay _          => cleardisplay pgipoutput
   328   | Normalresponse _        => normalresponse pgipoutput
   349   | Normalresponse _        => normalresponse pgipoutput
   329   | Errorresponse _         => errorresponse pgipoutput
   350   | Errorresponse _         => errorresponse pgipoutput
   330   | Informfileloaded _      => informfileloaded pgipoutput
   351   | Informfileloaded _      => informfileloaded pgipoutput
       
   352   | Informfileoutdated _    => informfileoutdated pgipoutput
   331   | Informfileretracted _   => informfileretracted pgipoutput
   353   | Informfileretracted _   => informfileretracted pgipoutput
   332   | Proofstate _            => proofstate pgipoutput
   354   | Proofstate _            => proofstate pgipoutput
   333   | Metainforesponse _      => metainforesponse pgipoutput
   355   | Metainforesponse _      => metainforesponse pgipoutput
   334   | Lexicalstructure _      => lexicalstructure pgipoutput
   356   | Lexicalstructure _      => lexicalstructure pgipoutput
   335   | Proverinfo _            => proverinfo pgipoutput
   357   | Proverinfo _            => proverinfo pgipoutput