1 (***********************************************************************)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
11 (***********************************************************************)
13 (* $Id: translmod.mli 8930 2008-07-24 05:35:22Z frisch $ *)
15 (* Translation from typed abstract syntax to lambda terms,
16 for the module language *)
21 val transl_implementation: string -> structure * module_coercion -> lambda
22 val transl_store_phrases: string -> structure -> int * lambda
23 val transl_store_implementation:
24 string -> structure * module_coercion -> int * lambda
25 val transl_toplevel_definition: structure -> lambda
27 Ident.t option list -> Ident.t -> module_coercion -> lambda
28 val transl_store_package:
29 Ident.t option list -> Ident.t -> module_coercion -> int * lambda
31 val toplevel_name: Ident.t -> string
32 val nat_toplevel_name: Ident.t -> Ident.t * int
34 val primitive_declarations: Primitive.description list ref
37 Circular_dependency of Ident.t
39 exception Error of Location.t * error
41 val report_error: Format.formatter -> error -> unit