Grammar and composition
Grammar and composition features define literals, concatenation, alternatives, comments, quoting, and the structural rules for forming patterns.
- Canonical category ID
grammar-and-composition- Exact feature count
- 21
Conceptual organization
The groupings below use the corpus’s feature-class field to make the category easier to scan. They do not change canonical category membership.
pattern13
- AlternationSelects among alternative pattern branches under the profile's match-selection policy.
feature.alternation - ConcatenationRequires adjacent pattern operands to match in sequence.
feature.concatenation - Empty alternativeAllows one branch of an alternation to consume no subject input.
feature.empty-alternative - Empty patternDefines a pattern that consumes no subject input.
feature.empty-pattern - Escaped literalQuotes a metacharacter so it denotes literal input.
feature.escaped-literal - Grammar mode directorSwitches among named regex grammars such as BRE, ERE, ARE or implementation modes.
feature.grammar-mode-director - Literal grammar directorSwitches a complete pattern or remaining pattern region to literal interpretation.
feature.literal-grammar-director - Literal stringConsumes an ordered sequence of literal text units.
feature.literal-string - Literal text unitConsumes one literal unit in the profile's governed text domain.
feature.literal-unit - Noncapturing groupGroups a subexpression for precedence or quantification without allocating a capture.
feature.noncapturing-group - Pattern commentEmbeds ignored commentary in the pattern grammar.
feature.pattern-comment - Quoted literal regionQuotes a sequence of pattern text as literal input until an explicit terminator.
feature.quoted-literal-region - Wildcard atomConsumes one governed text unit except units excluded by newline or domain policy.
feature.wildcard
algebra7
- Empty-language atomDenotes the regular language containing no strings; this differs from an empty pattern that matches the empty string.
feature.empty-language-atom - Expression-level language complementDenotes the complement of an operand language relative to the declared string alphabet/universe, not merely a negated character class.
feature.expression-complement - Expression-level language differenceDenotes strings in the first operand language and not in the second operand language.
feature.expression-difference - Expression-level language intersectionDenotes exactly the strings accepted by both operand regular languages; it is distinct from character-class intersection and multi-pattern result combination.
feature.expression-intersection - Named automaton referenceReferences an externally supplied named automaton as a regular-language atom under the compiler's automaton provider.
feature.named-automaton-reference - Numeric interval language atomDenotes decimal strings whose numeric values lie in an inclusive interval, with source-defined fixed-width behavior when endpoints have equal width.
feature.numeric-interval-language-atom - Universal-language atomDenotes every string over the governed alphabet, including the empty string where the source theory defines a full string universe.
feature.universal-language-atom
grammar1
Category provenance
All 21 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.