Module wlambda::selector[][src]

Expand description

Structs

Stores the position of a captured part of the input string of a pattern.

Stores the result of a pattern match, including the captured parts of the input string.

A parse buffer, storing the current offset into the input string.

State for evaluating patterns and selectors.

Enums

Functions

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.

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.

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.

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.

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.

Parses a regex pattern from a parser State and returns the VVal data structure describing the parsed pattern.

Type Definitions

A function type for the evaluation node of a regex pattern.

A function type for the evaluation node of a data structure selector.