1Pprintast(3) OCaml library Pprintast(3)
2
3
4
6 Pprintast - Pretty-printers for Parsetree
7
9 Module Pprintast
10
12 Module Pprintast
13 : sig end
14
15
16 Pretty-printers for Parsetree
17
18 Warning: this module is unstable and part of Compiler_libs .
19
20
21
22
23
24 type space_formatter = (unit, Format.formatter, unit) format
25
26
27
28
29
30 val longident : Format.formatter -> Longident.t -> unit
31
32
33
34
35 val expression : Format.formatter -> Parsetree.expression -> unit
36
37
38
39
40 val string_of_expression : Parsetree.expression -> string
41
42
43
44
45 val pattern : Format.formatter -> Parsetree.pattern -> unit
46
47
48
49
50 val core_type : Format.formatter -> Parsetree.core_type -> unit
51
52
53
54
55 val signature : Format.formatter -> Parsetree.signature -> unit
56
57
58
59
60 val structure : Format.formatter -> Parsetree.structure -> unit
61
62
63
64
65 val string_of_structure : Parsetree.structure -> string
66
67
68
69
70 val module_expr : Format.formatter -> Parsetree.module_expr -> unit
71
72
73
74
75 val toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase ->
76 unit
77
78
79
80
81 val top_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
82
83
84
85
86 val tyvar : Format.formatter -> string -> unit
87
88 Print a type variable name, taking care of the special treatment re‐
89 quired for the single quote character in second position.
90
91
92
93
94
95OCamldoc 2022-02-04 Pprintast(3)