package ocaml-base-compiler

  1. Overview
  2. Docs

Long identifiers, used in parsetree.

Warning: this module is unstable and part of compiler-libs.

type t =
  1. | Lident of string
  2. | Ldot of t * string
  3. | Lapply of t * t
val flatten : t -> string list
val unflatten : string list -> t option
val last : t -> string
val parse : string -> t

To print a longident, see Pprintast.longident, using Format.asprintf to convert to a string.

OCaml

Innovation. Community. Security.