Closed
Description
Let’s use this as the tracking bug for this work.
Here’s the high-level steps towards RegExp set notation + properties of strings support in regexpu-core:
- Revise feature-specific options API
- Add support for the new RegExp flag + grammar to regjsparser
- Add codegen support to regjsgen
- Implement set notation transpilation
- Implement strings support in sets
- Set operations can be represented as alternations (e.g.
def|bc|a
) after computing the resulting set. - PR by @nicolo-ribaudo: Support strings in sets in
v
mode #53
- Set operations can be represented as alternations (e.g.
- Implement properties of strings transpilation
- Similar to set operation results, any property of strings can be transpiled into a series of alternations.
- We could use
node-unicode-data
packages e.g.unicode-14.0.0
to get the Unicode data for the supported properties. - PR by @nicolo-ribaudo: Add support for
\p
Unicode properties of strings #54
- Integrate with Babel
- Parser support PR by @nicolo-ribaudo: Add parser support for the "regexp unicode sets" proposal babel/babel#14086
- Transpilation support PR by @nicolo-ribaudo: Add transform support for the "regexp unicode sets" proposal babel/babel#14125
Metadata
Metadata
Assignees
Labels
No labels