Module StringSExpr

S-Expressions over string atoms

module type StringSExpr = SExprBase.S with type atom = string

Define the type of the result from the functor application

Include the module here to avoid having to write StringSExpr.StringSExpr

include StringSExpr
type atom = string

Atom in an S-expression

type t =
  1. | Atom of atom
  2. | List of t list

S-expression is either an atom or a list of S-expressions

val pp_print_sexpr : Stdlib.Format.formatter -> t -> unit

Pretty-print an S-expression

val pp_print_sexpr_list : Stdlib.Format.formatter -> t list -> unit

Pretty-print a list of S-expressions enclosed in parentheses

val print_sexpr : t -> unit

Pretty-print an S-expression to the standard formatter

val pp_print_sexpr_indent : int -> Stdlib.Format.formatter -> t -> unit

Pretty-print an S-expression

val pp_print_sexpr_indent_compact : int -> Stdlib.Format.formatter -> t -> unit
val string_of_sexpr : t -> string

Return a string representation of an S-Expression