package sexp

  1. Overview
  2. Docs
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
val t_of_sexp : Sexplib0.Sexp.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