package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppxlib-0.39.0.tbz
sha256=441a2814dbac3f5dc0c8dcefca263548e9b4d6dda1ef2990ce6a4999e108be3c
sha512=55ace8f9c8ddb6b495ace105c1b594b983fc37946bd3d9531c1c45160341d2b06e679785e2db76d885eaf481dbf11806e7d9674281c1599f28c38f39ba6b7ae6

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