package diffast-misc

  1. Overview
  2. Docs
Miscellaneous functions for Diff/AST

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.4.tar.gz
sha256=f58dc5326c1698e22b84e3b808e6008228071f5796cda65433106e0d42c0dad5
sha512=8e451ab99433ef479c7d3aa0396bab6650894a2c3282e72cc65014d61f59dde578020d4bc9d423045e66d1d4592b58e877d7bd830788aeb96e5fa4ba534b4b78

doc/diffast-misc/Diffast_misc/Path/index.html

Module Diffast_misc.Path

module Elem : sig ... end
type t =
  1. | PATH of Elem.t list
exception Invalid_path of string
val to_string : t -> string
val sep_pat : Str.regexp
val of_string : string -> t
val root : t
val strip : t -> t
val length : t -> int
val append : t -> Elem.t -> t
val append_pos : ?ofs:??? -> t -> int -> t
val set_ofs : t -> float -> unit
val concat : t -> t -> t
val remove_head : t -> t -> t
val remove_head_n : int -> t -> t
val get_positions : t -> int list
val get_elems : t -> Elem.t list
val split : t -> t * Elem.t
val get_parent : t -> t
val get_offset : t -> float
val get_position : t -> int
val head : t -> int -> t
val tail : t -> Elem.t
val nth : t -> int -> Elem.t
val eq : t -> t -> bool
val is_prefix : ?exact:??? -> t -> t -> bool
val compare : t -> t -> int