equal
deleted
inserted
replaced
23 val escape: output -> string |
23 val escape: output -> string |
24 val physical_stdout: output -> unit |
24 val physical_stdout: output -> unit |
25 val physical_stderr: output -> unit |
25 val physical_stderr: output -> unit |
26 val physical_writeln: output -> unit |
26 val physical_writeln: output -> unit |
27 exception Protocol_Message of Properties.T |
27 exception Protocol_Message of Properties.T |
|
28 val writelns: string list -> unit |
28 val urgent_message: string -> unit |
29 val urgent_message: string -> unit |
29 val error_message': serial * string -> unit |
30 val error_message': serial * string -> unit |
30 val error_message: string -> unit |
31 val error_message: string -> unit |
31 val prompt: string -> unit |
32 val prompt: string -> unit |
32 val status: string -> unit |
33 val status: string -> unit |
105 val report_fn = Unsynchronized.ref (fn _: output list => ()); |
106 val report_fn = Unsynchronized.ref (fn _: output list => ()); |
106 val result_fn = Unsynchronized.ref (fn _: Properties.T => fn _: output list => ()); |
107 val result_fn = Unsynchronized.ref (fn _: Properties.T => fn _: output list => ()); |
107 val protocol_message_fn: (Properties.T -> output list -> unit) Unsynchronized.ref = |
108 val protocol_message_fn: (Properties.T -> output list -> unit) Unsynchronized.ref = |
108 Unsynchronized.ref (fn props => fn _ => raise Protocol_Message props); |
109 Unsynchronized.ref (fn props => fn _ => raise Protocol_Message props); |
109 |
110 |
110 fun writeln s = ! writeln_fn [output s]; |
111 fun writelns ss = ! writeln_fn (map output ss); |
|
112 fun writeln s = writelns [s]; |
111 fun urgent_message s = ! urgent_message_fn [output s]; (*Proof General legacy*) |
113 fun urgent_message s = ! urgent_message_fn [output s]; (*Proof General legacy*) |
112 fun tracing s = ! tracing_fn [output s]; |
114 fun tracing s = ! tracing_fn [output s]; |
113 fun warning s = ! warning_fn [output s]; |
115 fun warning s = ! warning_fn [output s]; |
114 fun error_message' (i, s) = ! error_message_fn (i, [output s]); |
116 fun error_message' (i, s) = ! error_message_fn (i, [output s]); |
115 fun error_message s = error_message' (serial (), s); |
117 fun error_message s = error_message' (serial (), s); |