author | wenzelm |
Sat, 09 Apr 2016 19:38:25 +0200 | |
changeset 62933 | f14569a9ab93 |
parent 62930 | 51ac6bc389e8 |
child 65301 | fca593a62785 |
permissions | -rw-r--r-- |
62930 | 1 |
(* Title: Pure/General/output_primitives.ML |
2 |
Author: Makarius |
|
3 |
||
4 |
Primitives for Isabelle output channels. |
|
5 |
*) |
|
6 |
||
7 |
signature OUTPUT_PRIMITIVES = |
|
8 |
sig |
|
9 |
type output = string |
|
10 |
type serial = int |
|
11 |
type properties = (string * string) list |
|
12 |
val writeln_fn: output list -> unit |
|
13 |
val state_fn: output list -> unit |
|
14 |
val information_fn: output list -> unit |
|
15 |
val tracing_fn: output list -> unit |
|
16 |
val warning_fn: output list -> unit |
|
17 |
val legacy_fn: output list -> unit |
|
18 |
val error_message_fn: serial * output list -> unit |
|
19 |
val system_message_fn: output list -> unit |
|
20 |
val status_fn: output list -> unit |
|
21 |
val report_fn: output list -> unit |
|
22 |
val result_fn: properties -> output list -> unit |
|
23 |
val protocol_message_fn: properties -> output list -> unit |
|
62933
f14569a9ab93
proper output of markup, e.g. relevant for nested ML as used in Pure/System/bash.ML;
wenzelm
parents:
62930
diff
changeset
|
24 |
val markup_fn: string * properties -> output * output |
62930 | 25 |
end; |
26 |
||
27 |
structure Output_Primitives: OUTPUT_PRIMITIVES = |
|
28 |
struct |
|
29 |
||
30 |
type output = string; |
|
31 |
type serial = int; |
|
32 |
type properties = (string * string) list; |
|
33 |
||
34 |
fun ignore_outputs (_: output list) = (); |
|
35 |
||
36 |
val writeln_fn = ignore_outputs; |
|
37 |
val state_fn = ignore_outputs; |
|
38 |
val information_fn = ignore_outputs; |
|
39 |
val tracing_fn = ignore_outputs; |
|
40 |
val warning_fn = ignore_outputs; |
|
41 |
val legacy_fn = ignore_outputs; |
|
42 |
fun error_message_fn (_: serial, _: output list) = (); |
|
43 |
val system_message_fn = ignore_outputs; |
|
44 |
val status_fn = ignore_outputs; |
|
45 |
val report_fn = ignore_outputs; |
|
46 |
fun result_fn (_: properties) = ignore_outputs; |
|
47 |
fun protocol_message_fn (_: properties) = ignore_outputs; |
|
48 |
||
62933
f14569a9ab93
proper output of markup, e.g. relevant for nested ML as used in Pure/System/bash.ML;
wenzelm
parents:
62930
diff
changeset
|
49 |
fun markup_fn (_: string * properties) = ("", ""); |
f14569a9ab93
proper output of markup, e.g. relevant for nested ML as used in Pure/System/bash.ML;
wenzelm
parents:
62930
diff
changeset
|
50 |
|
62930 | 51 |
end; |