1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
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
|
|
|
(* Compute constructor and label descriptions from type declarations,
|
|
|
|
determining their representation. *)
|
|
|
|
|
|
|
|
open Asttypes
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-07-25 04:40:07 -07:00
|
|
|
|
|
|
|
val constructor_descrs:
|
2012-05-30 07:52:37 -07:00
|
|
|
type_expr -> (Ident.t * type_expr list * type_expr option) list ->
|
|
|
|
private_flag -> (Ident.t * constructor_description) list
|
1995-07-25 04:40:07 -07:00
|
|
|
val exception_descr:
|
2012-03-06 11:03:17 -08:00
|
|
|
Path.t -> exception_declaration -> constructor_description
|
1995-07-25 04:40:07 -07:00
|
|
|
val label_descrs:
|
2012-05-30 07:52:37 -07:00
|
|
|
type_expr -> (Ident.t * mutable_flag * type_expr) list ->
|
2010-01-22 04:48:24 -08:00
|
|
|
record_representation -> private_flag ->
|
2012-05-30 07:52:37 -07:00
|
|
|
(Ident.t * label_description) list
|
1999-10-29 07:42:37 -07:00
|
|
|
|
|
|
|
exception Constr_not_found
|
|
|
|
|
|
|
|
val find_constr_by_tag:
|
2012-05-30 07:52:37 -07:00
|
|
|
constructor_tag -> (Ident.t * type_expr list * type_expr option) list ->
|
|
|
|
Ident.t * type_expr list * type_expr option
|