This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
19
unikernel/duniverse/ppxlib/astlib/longident.mli
Normal file
19
unikernel/duniverse/ppxlib/astlib/longident.mli
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue