forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactions.mli
44 lines (30 loc) · 1.65 KB
/
actions.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
(**************************************************************************)
(* *)
(* 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 actions, basic blocks for tests *)
type code = out_channel -> Environments.t -> Result.t * Environments.t
type t
val name : t -> string
val action_name : Variables.t
val update : t -> code -> t
val make : string -> code -> t
val compare : t -> t -> int
val register : t -> unit
val get_registered_actions : unit -> t list
val lookup : string -> t option
val set_hook : string -> code -> unit
val clear_hook : string -> unit
val clear_all_hooks : unit -> unit
val run : out_channel -> Environments.t -> t -> Result.t * Environments.t
module ActionSet : Set.S with type elt = t