package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

a6fadbd212f3cd7d5d8dcfefc46c884f710fedc0.tar.gz
sha256=25e81f2085ad19688f7056c6df49ca48b3df4cea8304ba3be2550e172d59bfec
sha512=cfdaa06fd32d206f72de05a5289d33ec85fa6bdf7c5be7c85874a16d9e154cdc080465453b60fe7f6c01589eb92e4296b18067413ac2d8dec47b9539f55e301e

doc/ppxlib.astlib/Astlib/Longident/index.html

Module Astlib.LongidentSource

Long identifiers, used in parsetrees.

Sourcetype t =
  1. | Lident of string
  2. | Ldot of t * string
  3. | Lapply of t * t

The long identifier type

Sourceval flatten : t -> string list

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

Sourceval parse : string -> t

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

Sourceval to_compiler : t -> Ocaml_common.Longident.t
Sourceval from_compiler : Ocaml_common.Longident.t -> t