package dune
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=317bec6de4429b5dee157e9864294e1534b722a2acfc50480bd16c804ab790ca
sha512=17450333156622d4612816f9ad5a224c741d62b247d63c1d77b5359d37517c1f9bc598dd11fa024f4e02ccf7eef474cd532eef1d9c34ed13439db6c781f9fa7a
doc/dune._dune_lang/Dune_lang/index.html
Module Dune_lang
Parsing of s-expressions.
This library is internal to dune and guarantees no API stability.
module Atom : sig ... endmodule Syntax : sig ... endmodule Template : sig ... endThe S-expression type
val atom : string -> tatom s convert the string s to an Atom.
val atom_or_quoted_string : string -> tval unsafe_atom_of_string : string -> tval pp : syntax -> Format.formatter -> t -> unitSerialize a S-expression using indentation to improve readability
val pp_quoted : Format.formatter -> t -> unitSerialization that never fails because it quotes atoms when necessary TODO remove this once we have a proper sexp type
val pp_split_strings : Format.formatter -> t -> unitSame as pp ~syntax:Dune, but split long strings. The formatter must have been prepared with prepare_formatter.
val prepare_formatter : Format.formatter -> unitPrepare a formatter for pp_split_strings. Additionaly the formatter escape newlines when the tags "makefile-action" or "makefile-stuff" are active.
module Ast : sig ... endAbstract syntax tree
val add_loc : t -> loc:Stdune.Loc.t -> Ast.tmodule Cst : sig ... endConcrete syntax tree
val insert_comments :
Cst.t list ->
(Stdune.Loc.t * Cst.Comment.t) list ->
Cst.t listInsert comments in a concrete syntax tree. Comments are inserted based on their location.
module Parse_error : sig ... endexception Parse_error of Parse_error.tException raised in case of a parsing error
module Lexer : sig ... endmodule Parser : sig ... endval parse_string :
fname:string ->
mode:'a Parser.Mode.t ->
?lexer:Lexer.t ->
string ->
'amodule Encoder : sig ... endmodule Decoder : sig ... endmodule type Conv = sig ... endval to_sexp : t Stdune.Sexp.Encoder.tmodule Io : sig ... end