This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,19 @@
(** Long identifiers, used in parsetrees. *)
(** The long identifier type *)
type t =
(*IF_NOT_AT_LEAST 504 Ocaml_common.Longident.t = *)
| Lident of string
| Ldot of t * string
| Lapply of t * t
val flatten : t -> string list
(** Flatten a long identifier built upon [Lident] and [Ldot]. Raise when hitting
[Lapply].*)
val parse : string -> t
(** Parse a string into a long identifier built upon [Lident] and [Ldot]. *)
val to_compiler : t -> Ocaml_common.Longident.t
val from_compiler : Ocaml_common.Longident.t -> t