Module patterns

Source

Structs§

AnyPattern
A Pattern that will match any single token.
ConsumesRemainingPattern
A pattern that wraps another pattern. If the wrapped pattern matches the remainder of the input, it returns the input’s length. Otherwise, it matches nothing.
EitherPattern
A pattern that returns the value of the first non-zero match in a list.
Invert
A struct that matches any pattern except the one provided.
IsNotTitleCase
Will match full length of wrapped pattern only if the matched text is not already title case.
NaivePatternGroup
A naive pattern collection that naively iterates through a list of patterns, returning the first one that matches.
NounPhrase
A pattern that returns the value of the first non-zero match in a list.
RepeatingPattern
A pattern that will match one or more repetitions of the same pattern.
SequencePattern
A pattern that checks that a sequence of other patterns match.
TokenKindPatternGroup
WhitespacePattern
WordPatternGroup
A pattern collection to look for patterns that start with a specific word.
WordSet

Traits§

Pattern
PatternExt