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