jon.recoil.org

Module Astlib.Longident

Long identifiers, used in parsetrees.

type t = Ocaml_common.Longident.t =
  1. | Lident of string
  2. | Ldot of Astlib.Longident.t * string
  3. | Lapply of Astlib.Longident.t * Astlib.Longident.t

The long identifier type

val flatten : Astlib.Longident.t -> string list

Flatten a long identifier built upon Lident and Ldot. Raise when hitting Lapply.

val parse : string -> Astlib.Longident.t

Parse a string into a long identifier built upon Lident and Ldot.