Class CharSetMatch
Matches a single character that is (or is not) a member of an explicit set,
e.g. [a-zA-Z_] or [^0-9].
public record CharSetMatch : TokenizerContent, IEquatable<RuleContent>, IEquatable<TokenizerContent>, IEquatable<CharSetMatch>
- Inheritance
-
CharSetMatch
- Implements
- Inherited Members
- Extension Methods
Constructors
CharSetMatch(IReadOnlySet<char>, bool)
Matches a single character that is (or is not) a member of an explicit set,
e.g. [a-zA-Z_] or [^0-9].
public CharSetMatch(IReadOnlySet<char> Chars, bool Negated)
Parameters
CharsIReadOnlySet<char>Negatedbool
Properties
Chars
Gets the immutable character set captured at construction time.
public IReadOnlySet<char> Chars { get; init; }
Property Value
Negated
public bool Negated { get; init; }