Module Output_method.Format

type t =
  1. | Atom of string
  2. | Capture of string
  3. | List of t list

A format specifies how the user wants their captured results to be formatted by providing a sexp structure in which the captures will get embedded.

include Sexplib0.Sexpable.S with type t := t
include Sexplib0.Sexpable.Of_sexp with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
include Sexplib0.Sexpable.Sexp_of with type t := t
val sexp_of_t : t -> Sexplib0.Sexp.t
val ts_of_string : string -> t list
val all_captures : t -> string list
val embed_captures : t -> f:(string -> Core.Sexp.t list) -> Core.Sexp.t list