2016-02-18 07:11:59 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
1995-08-09 08:06:35 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Translation from typed abstract syntax to lambda terms,
|
|
|
|
for the module language *)
|
|
|
|
|
|
|
|
open Typedtree
|
|
|
|
open Lambda
|
|
|
|
|
2016-08-01 07:06:59 -07:00
|
|
|
val transl_implementation:
|
|
|
|
string -> structure * module_coercion -> Lambda.program
|
2007-11-06 07:16:56 -08:00
|
|
|
val transl_store_phrases: string -> structure -> int * lambda
|
1996-02-18 06:43:18 -08:00
|
|
|
val transl_store_implementation:
|
2016-01-26 07:43:24 -08:00
|
|
|
string -> structure * module_coercion -> Lambda.program
|
|
|
|
|
|
|
|
val transl_implementation_flambda:
|
2016-06-03 02:03:50 -07:00
|
|
|
string -> structure * module_coercion -> Lambda.program
|
2016-01-26 07:43:24 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
val transl_toplevel_definition: structure -> lambda
|
2010-01-22 04:48:24 -08:00
|
|
|
val transl_package:
|
2004-04-09 06:32:28 -07:00
|
|
|
Ident.t option list -> Ident.t -> module_coercion -> lambda
|
2003-03-06 07:59:55 -08:00
|
|
|
val transl_store_package:
|
2004-04-09 06:32:28 -07:00
|
|
|
Ident.t option list -> Ident.t -> module_coercion -> int * lambda
|
2003-03-06 07:59:55 -08:00
|
|
|
|
2016-01-26 07:43:24 -08:00
|
|
|
val transl_package_flambda:
|
2016-03-09 02:40:16 -08:00
|
|
|
Ident.t option list -> module_coercion -> int * lambda
|
2016-01-26 07:43:24 -08:00
|
|
|
|
2000-06-12 07:22:37 -07:00
|
|
|
val toplevel_name: Ident.t -> string
|
2007-11-06 07:16:56 -08:00
|
|
|
val nat_toplevel_name: Ident.t -> Ident.t * int
|
1995-10-09 06:37:11 -07:00
|
|
|
|
2008-07-23 22:35:22 -07:00
|
|
|
val primitive_declarations: Primitive.description list ref
|
2003-06-19 08:53:53 -07:00
|
|
|
|
2018-10-01 07:10:16 -07:00
|
|
|
type unsafe_component =
|
|
|
|
| Unsafe_module_binding
|
|
|
|
| Unsafe_functor
|
|
|
|
| Unsafe_non_function
|
|
|
|
| Unsafe_typext
|
|
|
|
|
2019-10-09 06:15:37 -07:00
|
|
|
type unsafe_info =
|
|
|
|
| Unsafe of { reason:unsafe_component; loc:Location.t; subid:Ident.t }
|
|
|
|
| Unnamed
|
2018-10-01 07:10:16 -07:00
|
|
|
|
2003-06-19 08:53:53 -07:00
|
|
|
type error =
|
2018-10-01 07:10:16 -07:00
|
|
|
Circular_dependency of (Ident.t * unsafe_info) list
|
2017-05-25 08:05:04 -07:00
|
|
|
| Conflicting_inline_attributes
|
2003-06-19 08:53:53 -07:00
|
|
|
|
|
|
|
exception Error of Location.t * error
|
|
|
|
|
2018-10-01 07:10:16 -07:00
|
|
|
val report_error: Location.t -> error -> Location.error
|
2014-05-09 05:01:21 -07:00
|
|
|
|
|
|
|
val reset: unit -> unit
|