1Longident(3) OCaml library Longident(3)
2
3
4
6 Longident - Long identifiers, used in parsetree.
7
9 Module Longident
10
12 Module Longident
13 : sig end
14
15
16 Long identifiers, used in parsetree.
17
18 Warning: this module is unstable and part of Compiler_libs .
19
20
21
22
23
24 type t =
25 | Lident of string
26 | Ldot of t * string
27 | Lapply of t * t
28
29
30
31
32
33 val flatten : t -> string list
34
35
36
37
38 val unflatten : string list -> t option
39
40
41
42
43 val last : t -> string
44
45
46
47
48 val parse : string -> t
49
50
51
52
53
54 To print a longident, see Pprintast.longident , using Format.asprintf
55 to convert to a string.
56
57OCamldoc 2020-02-27 Longident(3)