Meziantou.Framework.Language.Regex namespace

Classes

NameDescription
RegexAlternationSyntaxRepresents a list of branches separated by |.
RegexAnchorSyntaxRepresents a zero-width assertion such as ^, $, \b, or \A.
RegexAnyCharacterSyntax
RegexAtomSyntaxThe base of a single unquantified unit of a pattern, such as a literal, a class, or a group.
RegexAtomicGroupSyntax
RegexBackreferenceSyntaxRepresents a numbered backreference such as \1.
RegexBacktrackingVerbSyntaxRepresents a PCRE backtracking control verb such as (*SKIP).
RegexBalancingGroupSyntaxRepresents a .NET balancing group, (?<current-previous>…).
RegexBranchResetGroupSyntax
RegexCalloutSyntaxRepresents a PCRE callout, (?C), (?C1), or (?C"text").
RegexCapturingGroupSyntax
RegexCharacterClassEscapeSyntaxRepresents a shorthand class escape: \d, \D, \w, \W, \s, or \S.
RegexCharacterClassSyntaxRepresents a character class, [abc] or [^a-z].
RegexCharacterEscapeSyntaxRepresents an escape that stands for one character, such as \n, \x41, \cA, or \052.
RegexCharacterRangeSyntax
RegexClassSetOperationSyntaxRepresents a JavaScript v-mode class set operation: an intersection such as [\w&&\p{L}] or a difference such as [[a-z]--[aeiou]].
RegexClassStringLiteralSyntaxRepresents a JavaScript v-mode string disjunction inside a class, \q{abc|def}.
RegexClassSubtractionSyntax
RegexCollatingElementSyntaxRepresents a POSIX collating element, [.ch.], or an equivalence class, [=a=].
RegexConditionalReferenceSyntaxRepresents the group reference that a conditional tests, the (1) or (name) of (?(1)yes|no).
RegexConditionalSyntax
RegexDialectIdentifies a regular-expression dialect understood by RegexSyntaxTree.
RegexExtensionsReads the regular-expression kind of the tokens, trivia, and nodes the shared syntax types hand back.
RegexGroupSyntaxThe base of every parenthesized construct.
RegexInlineOptionsSyntaxRepresents an inline option setter such as (?i) or (?-x), which has no body.
RegexLiteralSyntaxRepresents a single ordinary character that matches itself.
RegexLookaroundSyntaxRepresents a lookahead or lookbehind, (?=…), (?!…), (?<=…), or (?<!…).
RegexNamedBackreferenceSyntaxRepresents a named backreference such as \k<name>, \k'name', or \<name>.
RegexNamedGroupSyntaxRepresents a named capturing group, (?<name>…), (?'name'…), or (?P<name>…).
RegexNonCapturingGroupSyntax
RegexOptionsGroupSyntaxRepresents a group that scopes inline options to its body, (?i:…).
RegexOptionsInteropConverts between RegexPatternOptions and the .NET engine's own options.
RegexParseOptionsConfigures how RegexSyntaxTree parses a pattern.
RegexPatternSyntaxRepresents a whole pattern: its body, and the delimiters around it when it was written as a literal.
RegexPosixCharacterClassSyntaxRepresents a POSIX bracket expression such as [:alpha:], which is only meaningful inside a character class.
RegexQuantifiedSyntaxRepresents a term followed by a quantifier, such as a* or (ab){2,3}?.
RegexQuantifierSyntaxThe base of the operator part of a quantified term.
RegexQuotedLiteralSyntaxRepresents a \Q…\E run, in which every character is literal.
RegexRangeQuantifierSyntaxRepresents a {n}, {n,}, or {n,m} quantifier, with an optional lazy or possessive modifier.
RegexRecursionSyntax
RegexSequenceSyntaxRepresents one branch of an alternation: the terms that must match one after another.
RegexSimpleQuantifierSyntaxRepresents a *, +, or ? quantifier, with an optional lazy or possessive modifier.
RegexSkippedTextSyntaxRepresents text the parser could not recognize, kept so the pattern still round-trips.
RegexSyntaxNodeThe base of every node in a regular-expression tree.
RegexSyntaxRewriterBuilds a new tree by visiting an old one and returning replacements.
RegexSyntaxTreeA parsed regular expression.
RegexSyntaxVisitorDispatches on the kind of a regular-expression node.
RegexSyntaxVisitor<TResult>Dispatches on the kind of a regular-expression node and returns a result.
RegexSyntaxWalkerVisits a regular-expression node and everything below it.
RegexTermSyntaxThe base of anything that can appear as one element of a RegexSequenceSyntax.
RegexUnicodeCategorySyntaxRepresents a Unicode category or block escape, \p{L} or \P{IsGreek}.
SyntaxFactoryBuilds regular-expression syntax nodes programmatically.

Structs

NameDescription
RegexCaptureInfoDescribes one capture group of a pattern.

Enums

NameDescription
RegexAnchorKindIdentifies which zero-width assertion an anchor is.
RegexDialectFamilyIdentifies the grammar family a RegexDialect belongs to, which selects the parser.
RegexDialectFeaturesThe optional constructs a RegexDialect supports.
RegexLookaroundKindIdentifies the direction and polarity of a lookaround.
RegexPatternOptionsThe options that change how a pattern is read.
RegexQuantifierModeHow a quantifier backtracks.
SyntaxKindIdentifies the kind of regular-expression syntax node, token, or trivia.