1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1998-11-12 06:53:46 -08:00
|
|
|
(* en Automatique. Distributed only by permission. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Type-checking of the module language *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1998-02-26 04:54:44 -08:00
|
|
|
val type_module:
|
|
|
|
Env.t -> Parsetree.module_expr -> Typedtree.module_expr
|
1995-05-04 03:15:53 -07:00
|
|
|
val type_structure:
|
1996-09-23 04:33:27 -07:00
|
|
|
Env.t -> Parsetree.structure -> Typedtree.structure * signature * Env.t
|
1998-04-27 08:16:48 -07:00
|
|
|
val type_implementation:
|
|
|
|
string -> string -> string -> Env.t -> Parsetree.structure ->
|
|
|
|
Typedtree.structure * Typedtree.module_coercion
|
1995-05-04 03:15:53 -07:00
|
|
|
val transl_signature:
|
|
|
|
Env.t -> Parsetree.signature -> signature
|
1995-09-02 11:55:37 -07:00
|
|
|
val check_nongen_schemes:
|
1996-09-23 04:33:27 -07:00
|
|
|
Env.t -> Typedtree.structure -> unit
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
type error =
|
|
|
|
Unbound_module of Longident.t
|
|
|
|
| Unbound_modtype of Longident.t
|
|
|
|
| Cannot_apply of module_type
|
|
|
|
| Not_included of Includemod.error list
|
|
|
|
| Cannot_eliminate_dependency of module_type
|
|
|
|
| Signature_expected
|
|
|
|
| Structure_expected of module_type
|
1995-10-01 06:39:43 -07:00
|
|
|
| With_no_component of Longident.t
|
1996-07-25 06:18:53 -07:00
|
|
|
| With_mismatch of Longident.t * Includemod.error list
|
1995-08-28 04:23:33 -07:00
|
|
|
| Repeated_name of string * string
|
1995-09-02 11:55:37 -07:00
|
|
|
| Non_generalizable of type_expr
|
1998-06-24 12:22:26 -07:00
|
|
|
| Non_generalizable_class of Ident.t * class_declaration
|
1996-05-22 09:22:33 -07:00
|
|
|
| Non_generalizable_module of module_type
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
exception Error of Location.t * error
|
|
|
|
|
|
|
|
val report_error: error -> unit
|