-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvariables.mli
46 lines (30 loc) · 1.64 KB
/
variables.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Sebastien Hinderer, projet Gallium, INRIA Paris *)
(* *)
(* Copyright 2016 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. *)
(* *)
(**************************************************************************)
(* Definition of environment variables *)
type value = string
type exporter = value -> string * string
type t
val compare : t -> t -> int
exception Empty_variable_name
exception Variable_already_registered of string
exception No_such_variable of string
val make : string * string -> t
val make_with_exporter : exporter -> string * string -> t
val name_of_variable : t -> string
val description_of_variable : t -> string
val register_variable : t -> unit
val find_variable : string -> t option
val string_of_binding : t -> value -> string
val get_registered_variables : unit -> t list