• en

Module Longident

module Longident: sig .. end

Long identifiers, used in parsetree.

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


type t = 
| Lident of string
| Ldot of t * string
| 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.