1997-03-22 12:16:52 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Objective Caml *)
|
|
|
|
(* *)
|
|
|
|
(* Jerome Vouillon, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1997-03-22 12:16:52 -08:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(* Printing of values *)
|
|
|
|
|
|
|
|
open Types
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
1997-03-22 12:16:52 -08:00
|
|
|
|
1998-10-01 05:34:32 -07:00
|
|
|
module type OBJ =
|
1997-03-22 12:16:52 -08:00
|
|
|
sig
|
|
|
|
type t
|
|
|
|
|
|
|
|
val obj : t -> 'a
|
|
|
|
val is_block : t -> bool
|
|
|
|
val tag : t -> int
|
|
|
|
val size : t -> int
|
|
|
|
val field : t -> int -> t
|
|
|
|
end
|
|
|
|
|
|
|
|
module type S =
|
|
|
|
sig
|
|
|
|
type t
|
|
|
|
|
|
|
|
val install_printer : Path.t -> Types.type_expr -> (t -> unit) -> unit
|
|
|
|
val remove_printer : Path.t -> unit
|
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
val print_exception : formatter -> t -> unit
|
1997-03-22 12:16:52 -08:00
|
|
|
val print_value :
|
|
|
|
int -> int -> (int -> t -> Types.type_expr -> bool) ->
|
2000-03-06 14:12:09 -08:00
|
|
|
Env.t -> t -> formatter -> type_expr -> unit
|
1997-03-22 12:16:52 -08:00
|
|
|
end
|
|
|
|
|
1998-10-01 05:34:32 -07:00
|
|
|
module Make(O : OBJ) : (S with type t = O.t)
|