mlw_pretty.mli 3.1 KB
Newer Older
1
2
(**************************************************************************)
(*                                                                        *)
MARCHE Claude's avatar
MARCHE Claude committed
3
(*  Copyright (C) 2010-2012                                               *)
4
5
6
(*    François Bobot                                                      *)
(*    Jean-Christophe Filliâtre                                           *)
(*    Claude Marché                                                       *)
MARCHE Claude's avatar
MARCHE Claude committed
7
(*    Guillaume Melquiond                                                 *)
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(*    Andrei Paskevich                                                    *)
(*                                                                        *)
(*  This software is free software; you can redistribute it and/or        *)
(*  modify it under the terms of the GNU Library General Public           *)
(*  License version 2.1, with the special exception on linking            *)
(*  described in file LICENSE.                                            *)
(*                                                                        *)
(*  This software is distributed in the hope that it will be useful,      *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *)
(*                                                                        *)
(**************************************************************************)

open Format
open Why3
open Mlw_ty
24
open Mlw_ty.T
25
26
27
28
29
30
31
open Mlw_expr
open Mlw_decl

val forget_all      : unit -> unit     (* flush id_unique *)
val forget_regs     : unit -> unit     (* flush id_unique for regions *)
val forget_tvs_regs : unit -> unit     (* flush for type vars and regions *)

Andrei Paskevich's avatar
Andrei Paskevich committed
32
33
val forget_pv : pvsymbol -> unit (* flush for a program variable *)
val forget_ps : psymbol  -> unit (* flush for a program symbol *)
34

Andrei Paskevich's avatar
Andrei Paskevich committed
35
val print_xs  : formatter -> xsymbol -> unit      (* exception symbol *)
36

Andrei Paskevich's avatar
Andrei Paskevich committed
37
38
val print_reg : formatter -> region -> unit       (* region *)
val print_its : formatter -> itysymbol -> unit    (* type symbol *)
39
val print_ity : formatter -> ity -> unit          (* individual type *)
40

Andrei Paskevich's avatar
Andrei Paskevich committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
val print_vtv : formatter -> vty_value -> unit    (* value type *)
val print_vta : formatter -> vty_arrow -> unit    (* arrow type *)
val print_vty : formatter -> vty -> unit          (* expression type *)

val print_pv   : formatter -> pvsymbol -> unit    (* program variable *)
val print_pvty : formatter -> pvsymbol -> unit    (* pvsymbol : type *)
val print_ps   : formatter -> psymbol  -> unit    (* program symbol *)
val print_psty : formatter -> psymbol  -> unit    (* psymbol : type *)

val print_effect : formatter -> effect -> unit    (* effect *)

val print_ppat : formatter -> ppattern -> unit    (* program patterns *)

val print_expr : formatter -> expr -> unit        (* expression *)
55

56
57
58
val print_type_c : formatter -> type_c -> unit
val print_type_v : formatter -> type_v -> unit

59
60
61
val print_ty_decl : formatter -> itysymbol -> unit
val print_data_decl : formatter -> data_decl -> unit
val print_next_data_decl : formatter -> data_decl -> unit
62
63
64

val print_pdecl : formatter -> pdecl -> unit