Module regex

Module regex 

Source
Expand description

A simple regex engine for operating on character streams and supporting the Sam text editor’s structural regular expressions.

Thompson’s original paper on writing a regex engine can be found here: https://dl.acm.org/doi/pdf/10.1145/363347.363387

Structs§

CachingStream
A wrapper around a Read that buffers and caches the data read in order to support searching with a regex.
CachingStreamIter
Match
The match location of a Regex against a given input.
Regex
A regular expression engine designed for use within the ad text editor.
RevRegex

Enums§

Error
Errors that can be returned by the regex engine

Traits§

Haystack
Something that can be searched over by a Regex.