Dune_langParsing of s-expressions.
This library is internal to dune and guarantees no API stability.
module File_syntax : sig ... endmodule Atom : 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 to_string : t -> syntax:File_syntax.t -> stringSerialize a S-expression
val pp : File_syntax.t -> t -> _ Stdune.Pp.tSerialize a S-expression using indentation to improve readability
module Deprecated : sig ... endmodule 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 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_dyn : t Stdune.Dyn.Encoder.tmodule Io : sig ... end