package ppxlib

  1. Overview
  2. Docs
Standard library for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppxlib-0.21.1.tbz
sha256=41182e15ddb9dc6fcfecb45736fe1ecf588e430f15ba349d09dba8a67e4e748a
sha512=dae7494a26a76f6f541046ef382979f5b48688e158bbf2fc5119e54b0bcfb903a20643bee3e9363a64f0332d92fee65b248c287ac8193cca2bfac2cfb66a4a0a

doc/ppxlib/Ppxlib/Longident/index.html

Module Ppxlib.Longident

Overrides the Longident module of OCaml

type t = Ppxlib_ast__.Import.Longident.t =
  1. | Lident of string
  2. | Ldot of t * string
  3. | Lapply of t * t
val compare : t -> t -> int
val sexp_of_t : t -> Ppxlib__.Import.Sexp.t
val flatten_exn : t -> string list
val last_exn : t -> string
val parse : string -> t

Parses the given string as a longident, properly handling infix operators which may contain '.'. Note that it does not parse Lapply _ longidents and will raise Invalid_argument _ if passed values such as "A(B)".

val name : t -> string
module Map : Map.S with type key = t
module Set : Set.S with type elt = t