Module Dune_lang

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

type t =
| Atom of Atom.t
| Quoted_string of string
| List of t list
| 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