Table of Contents

Class CharSetMatch

Namespace
Utils.Parser.Model
Assembly
Utils.Parser.dll

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

Chars IReadOnlySet<char>
Negated bool

Properties

Chars

Gets the immutable character set captured at construction time.

public IReadOnlySet<char> Chars { get; init; }

Property Value

IReadOnlySet<char>

Negated

public bool Negated { get; init; }

Property Value

bool