Expand description
Implements a data querying algorithm that is used
by the WLambda $S(...)
syntax and by WLambda std:selector
. It’s a recursive
searching, matching and capturing algorithm.
Enums§
Functions§
- create_
regex_ find - Creates a function that takes a string slice and tries to
find the compiled regular expression in it.
The returned function then returns a
PatResult
which stores the captures and whether the pattern matched. - create_
regex_ find_ all - Creates a function that takes a string slice and tries to
find the compiled regular expression in it.
The returned function then returns a
PatResult
which stores the captures and whether the pattern matched. - create_
regex_ find_ function - Creates a WLambda function that takes a string slice and tries to
find the compiled regular expression in it.
The returned function then returns a
PatResult
which stores the captures and whether the pattern matched. - create_
selector - Creates a function that takes a VVal data structure
and runs the given selector expression on it.
The returned function then returns a list of captured nodes
or
$none
if nothing was found. - create_
selector_ function - Creates a WLambda function that takes a VVal data structure
and runs the given selector expression on it.
The returned function then returns a list of captured nodes
or
$none
if nothing was found. - parse_
pattern - Parses a regex pattern from a parser State and returns the VVal data structure describing the parsed pattern.