Debian Codegraph @

tools/dune_rule_gen/path.mli

raw symbols SCIP
1 (************************************************************************)
2 (* This file is licensed under The MIT License *)
3 (* See LICENSE for more information *)
4 (************************************************************************)
5
6 type t
7
8 (** [make path] build a path from a string *)
9 val make : string -> t
10
11 (** [relative path s] append [s] to [path] to build [path/s] *)
12 val relative : t -> string -> t
13
14 (** [basename path] returns the basename *)
15 val basename : t -> string
16
17 (** [adjust ~lvl path] adjusts a path to refer to [lvl] lower
18 directories, that is to say [adjust ~lvl:2 p] will do [../../p] *)
19 val adjust : lvl:int -> t -> t
20
21 (** [add_extension ext p] builds [p^ext] *)
22 val add_extension : ext:string -> t -> t
23
24 val replace_ext : ext:string -> t -> t
25
26 val to_string : t -> string
27
28 val compare : t -> t -> int
29 val pp : Format.formatter -> t -> unit
30
31 (* Hack for coqdep, see comments in the implementation *)
32 val coqdep_fixup_dir : t -> t