242 |
242 |
243 local |
243 local |
244 |
244 |
245 fun statedisplay prts = |
245 fun statedisplay prts = |
246 let |
246 let |
247 val display = Pretty.output (Pretty.chunks prts) |
247 val display = Pretty.chunks prts |
248 (* TODO: add extra PGML markup for allow proof state navigation *) |
248 val pgml = Pgml.Pgml |
249 val statedisplay = XML.Elem("statedisplay",[], [XML.Rawtext display]) |
249 { version=SOME PgipIsabelle.isabelle_pgml_version_supported, |
250 in |
250 systemid=SOME PgipIsabelle.systemid, |
251 issue_pgip (Proofstate {pgml=[XML.Elem("pgml",[],[statedisplay])]}) |
251 content = Pgml.Subterm |
|
252 { kind=SOME "statedisplay", |
|
253 param=NONE,place=NONE,name=NONE,decoration=NONE, |
|
254 action=NONE,pos=NONE,xref=NONE, |
|
255 content=[Pgml.Atoms { kind = NONE, |
|
256 content = [Pgml.Str (Pretty.output display)] }] } |
|
257 (* [PgmlIsabelle.pgml_of_prettyT display] *) } |
|
258 (* TODO: PGML markup for proof state navigation *) |
|
259 in |
|
260 issue_pgip (Proofstate {pgml=pgml}) |
252 end |
261 end |
253 |
262 |
254 fun print_current_goals n m st = |
263 fun print_current_goals n m st = |
255 case (Display.pretty_current_goals n m st) of |
264 case (Display.pretty_current_goals n m st) of |
256 [] => tell_clear_goals() |
265 [] => tell_clear_goals() |