package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Ast : sig ... end

Abstract syntax tree

module Atom : sig ... end
module Conv : sig ... end

Encoding + Decoding

module Cst : sig ... end

Concrete syntax tree

module Decoder : sig ... end

Reading OCaml values from dune lang ones

module Encoder : sig ... end

Producing dune lang values from OCaml values

module Lexer : sig ... end
module Parser : sig ... end

Parsing of the Dune language

module Syntax : sig ... end

Management of syntaxes

module Template : sig ... end
module Versioned_file : sig ... end

Implementation of versioned files

Parsing of s-expressions.

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

type 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

val atom : string -> t

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

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

Serialize a S-expression

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

Serialize a S-expression using indentation to improve readability

module Deprecated : sig ... end
val to_dyn : t Stdune.Dyn.Encoder.t