package ego
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module encodes patterns (for both matching and transformation) over Sexprs and is part of Ego.Basic
's API for expressing syntactic rewrites.
val pp : Stdlib.Format.formatter -> t -> unit
pp fmt s
pretty prints the query s
.
val show : t -> string
show s
converts the query s
to a string
val of_sexp : Sexplib0.Sexp.t -> t
of_sexp s
builds a pattern from a s-expression
Note: Any atom prefixed with "?" will be treated as a pattern variable.
For example, the following pattern will match any multiplication expressions:
List [Atom "*"; Atom "?a"; Atom "?b"]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>