package dune-private-libs

  1. Overview
  2. Docs
Private libraries of Dune

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-2.5.1.tbz
sha256=8f77d3a87f208e0d7cccaa1c48c4bb1bb87d62d07c3f25e9b8ba298e028ce52b
sha512=f209f12ced10c1abf8782bdb0143f4cec77795f7174d2cc75130afb1e01550b01f2f77b9e3ec4888efdad83d2f9878d179b39126f824f4e522f3ef4da34bf27e

doc/dune-private-libs.dune-lang/Dune_lang/index.html

Module Dune_langSource

Sourcemodule Ast : sig ... end

Abstract syntax tree

Sourcemodule Atom : sig ... end
Sourcemodule Conv : sig ... end

Encoding + Decoding

Sourcemodule Cst : sig ... end

Concrete syntax tree

Sourcemodule Decoder : sig ... end

Reading OCaml values from dune lang ones

Sourcemodule Encoder : sig ... end

Producing dune lang values from OCaml values

Sourcemodule Lexer : sig ... end
Sourcemodule Parser : sig ... end

Parsing of the Dune language

Sourcemodule Syntax : sig ... end

Management of syntaxes

Sourcemodule Template : sig ... end
Sourcemodule Versioned_file : sig ... end

Implementation of versioned files

Parsing of s-expressions.

This library is internal to dune and guarantees no API stability.

Sourcetype t =
  1. | Atom of Atom.t
  2. | Quoted_string of string
  3. | List of t list
  4. | Template of Template.t

The S-expression type

Sourceval atom : string -> t

atom s convert the string s to an Atom. NOTE No validity check is performed.

Sourceval atom_or_quoted_string : string -> t
Sourceval unsafe_atom_of_string : string -> t
Sourceval to_string : t -> string

Serialize a S-expression

Sourceval pp : t -> _ Stdune.Pp.t

Serialize a S-expression using indentation to improve readability

Sourcemodule Deprecated : sig ... end