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 *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Predefined type constructors (with special typing rules in typecore) *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
val type_int: type_expr
|
|
|
|
val type_char: type_expr
|
|
|
|
val type_string: type_expr
|
|
|
|
val type_float: type_expr
|
|
|
|
val type_bool: type_expr
|
|
|
|
val type_unit: type_expr
|
|
|
|
val type_exn: type_expr
|
|
|
|
val type_array: type_expr -> type_expr
|
|
|
|
val type_list: type_expr -> type_expr
|
|
|
|
|
|
|
|
val path_int: Path.t
|
|
|
|
val path_char: Path.t
|
|
|
|
val path_string: Path.t
|
|
|
|
val path_float: Path.t
|
|
|
|
val path_bool: Path.t
|
|
|
|
val path_unit: Path.t
|
|
|
|
val path_exn: Path.t
|
|
|
|
val path_array: Path.t
|
|
|
|
val path_list: Path.t
|
|
|
|
val path_format: Path.t
|
|
|
|
|
|
|
|
val path_match_failure: Path.t
|
|
|
|
|
|
|
|
(* To build the initial environment. Since there is a nasty mutual
|
|
|
|
recursion between predef and env, we break it by parameterizing
|
|
|
|
over Env.t, Env.add_type and Env.add_exception. *)
|
|
|
|
|
|
|
|
val build_initial_env:
|
|
|
|
(Ident.t -> type_declaration -> 'a -> 'a) ->
|
|
|
|
(Ident.t -> exception_declaration -> 'a -> 'a) ->
|
|
|
|
'a -> 'a
|
|
|
|
|
|
|
|
(* To initialize linker tables *)
|
|
|
|
|
|
|
|
val builtin_values: (string * Ident.t) list
|