package / ocaml-base-compiler.4.10.0 / ocamltest / ocaml_filetypes.mli
1 (**************************************************************************)
2 (* *)
3 (* OCaml *)
4 (* *)
5 (* Sebastien Hinderer, projet Gallium, INRIA Paris *)
6 (* *)
7 (* Copyright 2016 Institut National de Recherche en Informatique et *)
8 (* en Automatique. *)
9 (* *)
10 (* All rights reserved. This file is distributed under the terms of *)
11 (* the GNU Lesser General Public License version 2.1, with the *)
12 (* special exception on linking described in the file LICENSE. *)
13 (* *)
14 (**************************************************************************)
15
16 (* Types of files involved in an OCaml project and related functions *)
17
18 type backend_specific = Object | Library | Program
19
20 type t =
21 | Implementation
22 | Interface
23 | C
24 | C_minus_minus
25 | Lexer
26 | Grammar
27 | Binary_interface
28 | Obj
29 | Backend_specific of Ocaml_backends.t * backend_specific
30 | Text (** text-only documentation file *)
31
32 val string_of_filetype : t -> string
33
34 val extension_of_filetype : t -> string
35
36 val filetype_of_extension : string -> t
37
38 val split_filename : string -> string * string
39
40 val filetype : string -> string * t
41
42 val make_filename : string * t -> string
43
44 val action_of_filetype : t -> string
45