Shells in OCaml
at main 14 lines 355 B view raw
1type t 2(** A lookup table for utilities *) 3 4val empty : t 5(** The empty table *) 6 7val add : utility:string -> loc:string -> t -> t 8(** [add ~utility ~loc t] adds the [utility] with [loc] location. *) 9 10val lookup : utility:string -> t -> string option 11(** [lookup ~utility t] will try to find [utility] in [t]. *) 12 13val pp : t Fmt.t 14(** A pretty printer *)