2002-02-08 02:14:31 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
2002-02-08 02:14:31 -08:00
|
|
|
(* *)
|
|
|
|
(* Daniel de Rauglaudre, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2002 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
open Format
|
|
|
|
|
2013-01-25 01:12:31 -08:00
|
|
|
type error =
|
|
|
|
| CannotRun of string
|
|
|
|
| WrongMagic of string
|
|
|
|
|
|
|
|
exception Error of error
|
2002-02-08 02:14:31 -08:00
|
|
|
|
|
|
|
val preprocess : string -> string
|
|
|
|
val remove_preprocessed : string -> unit
|
2012-01-20 06:23:34 -08:00
|
|
|
val file : formatter -> string -> (Lexing.lexbuf -> 'a) -> string -> 'a
|
2013-01-25 01:12:31 -08:00
|
|
|
val apply_rewriters : string -> 'a -> 'a
|
|
|
|
val report_error : formatter -> error -> unit
|
2013-09-10 06:44:34 -07:00
|
|
|
|
|
|
|
|
2013-09-10 06:48:43 -07:00
|
|
|
val parse_implementation: formatter -> string -> Parsetree.structure
|
|
|
|
val parse_interface: formatter -> string -> Parsetree.signature
|