added report;
authorwenzelm
Tue, 05 Aug 2008 13:31:38 +0200
changeset 27741 d2523b72ed44
parent 27740 0b22524c05e2
child 27742 df552e6027cf
added report;
src/Pure/General/position.ML
--- a/src/Pure/General/position.ML	Tue Aug 05 13:31:36 2008 +0200
+++ b/src/Pure/General/position.ML	Tue Aug 05 13:31:38 2008 +0200
@@ -27,6 +27,7 @@
   val setmp_thread_data_seq: T -> ('a -> 'b Seq.seq) -> 'a -> 'b Seq.seq
   type range = T * T
   val encode_range: range -> T
+  val report: Markup.T -> T -> unit
 end;
 
 structure Position: POSITION =
@@ -131,4 +132,11 @@
     | SOME (m, n) => [(Markup.end_lineN, string_of_int m), (Markup.end_columnN, string_of_int n)])
   in Pos (count, props') end;
 
+
+(* report markup *)
+
+fun report markup pos =
+  if pos = none then ()
+  else Output.status (Markup.markup (Markup.properties (properties_of pos) markup) "");
+
 end;