Crate swc_ecma_regexp_ast
Source - Alternative
- Single unit of
| separated alternatives. - BoundaryAssertion
- Simple form of assertion.
e.g.
^, $, \b, \B - CapturingGroup
- Named or unnamed capturing group.
e.g.
(...), (?<name>...) - Character
- Single character.
- CharacterClass
- Character class wrapped by
[].
e.g. [a-z], [^A-Z], [abc], [a&&b&&c], [[a-z]--x--y] - CharacterClassEscape
- Character class.
e.g.
\d, \D, \s, \S, \w, \W - CharacterClassRange
- separated range of characters.
e.g. a-z, A-Z, 0-9- ClassString
- Single unit of
ClassStringDisjunction. - ClassStringDisjunction
| separated string of characters wrapped by \q{}.- Disjunction
- Pile of
Alternatives separated by |. - Dot
- The
.. - IgnoreGroup
- Pseudo-group for ignoring.
e.g.
(?:...) - IndexedReference
- Backreference by index.
e.g.
\1, \2, \3 - LookAroundAssertion
- Lookaround assertion.
e.g.
(?=...), (?!...), (?<=...), (?<!...) - Modifier
- Each part of modifier in
Modifiers. - Modifiers
- Modifiers in
IgnoreGroup.
e.g. i in (?i:...), -s in (?-s:...) - NamedReference
- Backreference by name.
e.g.
\k<name> - Pattern
- The root of the
PatternParser result. - Quantifier
- Quantifier holding a
Term and its repetition count.
e.g. a*, b+, c?, d{3}, e{4,}, f{5,6} - UnicodePropertyEscape
- Unicode property.
e.g.
\p{ASCII}, \P{ASCII}, \p{sc=Hiragana}, \P{sc=Hiragana}
- BoundaryAssertionKind
- CharacterClassContents
- CharacterClassContentsKind
- CharacterClassEscapeKind
- CharacterKind
- LookAroundAssertionKind
- Term
- Single unit of
Alternative, containing various kinds.