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 *)
|
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. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-07-25 04:40:07 -07:00
|
|
|
(* Typing of type definitions and primitive definitions *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
val transl_type_decl:
|
|
|
|
Env.t -> (string * Parsetree.type_declaration) list ->
|
|
|
|
(Ident.t * type_declaration) list * Env.t
|
|
|
|
val transl_exception:
|
|
|
|
Env.t -> Parsetree.exception_declaration -> exception_declaration
|
|
|
|
|
1995-07-25 04:40:07 -07:00
|
|
|
val transl_value_decl:
|
|
|
|
Env.t -> Parsetree.value_description -> value_description
|
1995-09-28 03:42:38 -07:00
|
|
|
|
|
|
|
val transl_with_constraint:
|
|
|
|
Env.t -> Parsetree.type_declaration -> type_declaration
|
1995-07-25 04:40:07 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
type error =
|
|
|
|
Repeated_parameter
|
|
|
|
| Duplicate_constructor of string
|
1995-05-22 08:43:44 -07:00
|
|
|
| Too_many_constructors
|
1995-05-04 03:15:53 -07:00
|
|
|
| Duplicate_label of string
|
|
|
|
| Recursive_abbrev of string
|
1995-09-26 13:23:29 -07:00
|
|
|
| Definition_mismatch of type_expr
|
1997-02-20 12:39:02 -08:00
|
|
|
| Unconsistent_constraint
|
|
|
|
| Type_clash of (type_expr * type_expr) list
|
1997-05-13 07:07:00 -07:00
|
|
|
| Null_arity_external
|
1998-06-24 12:22:26 -07:00
|
|
|
| Unbound_type_var
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
exception Error of Location.t * error
|
|
|
|
|
|
|
|
val report_error: error -> unit
|