package sexp
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=bde6acfd2814bcc38a0d3cacb42e513d8932595152dd9798419559fb0e026f4e
doc/sexp.sexp_app_pattern/Sexp_app_pattern/Output_method/index.html
Module Sexp_app_pattern.Output_method
Source
type _ t =
| Formats : _ Wrap_mode.t * Format.t list -> Core.Sexp.t list t
(*Embed captures in the specified formats
*)| List : _ Wrap_mode.t -> Core.Sexp.t t
(*Return different capture expressions' results as a Sexp.List. In the case of
*)Unwrap_always
, the sequences consumed by each capture expression are concatenated, so the list may be longer (or shorter) than the number of capture expressions.| Record : _ Wrap_mode.t -> Core.Sexp.t t
(*Return captures as a sexp record where the field names are the labels of the capturing expressions. In the case of
*)Unwrap_always
, the sequences consumed by each capture expression have the field name consed onto them, so the result may not actually be a list of pairs!| Single_capture : 'query_result Wrap_mode.t -> 'query_result t
(*Expect exactly one capture in the pattern, and return its captured contents.
*)| Map : Core.Sexp.t list Core.String.Map.t t
(*Return a map from capture name to captures. Similar to doing
*)Record Wrap_always
and then[%of_sexp: Sexp.t list String.Map.t]
Determine a default output method to use based on whether the query contains numbered or named captures.