1 (**************************************************************************)
2 (* *)
3 (* OCaml *)
4 (* *)
5 (* Hongbo Zhang (University of Pennsylvania) *)
6 (* *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. *)
9 (* *)
10 (* All rights reserved. This file is distributed under the terms of *)
11 (* the GNU Lesser General Public License version 2.1, with the *)
12 (* special exception on linking described in the file LICENSE. *)
13 (* *)
14 (**************************************************************************)
15
16
17 (** Pretty-printers for {!Parsetree}
18
19 {b Warning:} this module is unstable and part of
20 {{!Compiler_libs}compiler-libs}.
21
22 *)
23
24 type space_formatter = (unit, Format.formatter, unit) format
25
26 val longident : Format.formatter -> Longident.t -> unit
27 val expression : Format.formatter -> Parsetree.expression -> unit
28 val string_of_expression : Parsetree.expression -> string
29
30 val pattern: Format.formatter -> Parsetree.pattern -> unit
31
32 val core_type: Format.formatter -> Parsetree.core_type -> unit
33
34 val signature: Format.formatter -> Parsetree.signature -> unit
35 val structure: Format.formatter -> Parsetree.structure -> unit
36 val string_of_structure: Parsetree.structure -> string
37
38 val toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
39 val top_phrase: Format.formatter -> Parsetree.toplevel_phrase -> unit
40
41
42 val tyvar: Format.formatter -> string -> unit
43 (** Print a type variable name, taking care of the special treatment
44 required for the single quote character in second position. *)
45