package sexp_select
-
sexp_select
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val select : Base.string -> Base.Sexp.t -> Base.Sexp.t Base.list
val select_staged :
Base.string ->
(Base.Sexp.t -> Base.Sexp.t Base.list) Base.Staged.t
same as select
, but the parsing of the selection expression is done once so the parsed result can be shared across the evaluation of multiple sexps.
val select_single_exn : Base.string -> Base.Sexp.t -> Base.Sexp.t
Like select, but returns a single element. Raises if that is not possible (e.g. if there are no matches or if there are multiple matches)
val format_program_outputs :
Base.Sexp.t ->
Base.string Base.list ->
Base.string
run a list of programs on an input sexp and nicely format the programs and their corresponding outputs when run on the given sexp, for use in -help output and expect tests.
val deselect : Base.string -> Base.Sexp.t -> Base.Sexp.t Base.option
invert the behavior of select
; drop the fields matching the selection expression.
val deselect_staged :
Base.string ->
(Base.Sexp.t -> Base.Sexp.t Base.option) Base.Staged.t
same as deselect
, but the parsing of the selection expression is done once so the parsed result can be shared across the evaluation of multiple sexps.
module For_testing : sig ... end
Reference implementations of select
and deselect
that are linked, to verify that operations are inversions of each other.