Skip to content

Commit 9b870d2

Browse files
[1] Last pull from main for 5.7, part 1 (swiftlang#374)
* Last pull from main for 5.7, part 1 Pulls in changes for: - SE-0350's API renaming - API names and enablement for the other 5 proposals - Drops un-needed Unicode data - CaptureList for communicating captures (spans parser and run-time) * Replace opaque results with generic parameters in Algorithms.swift (swiftlang#367) Work around the compiler bug rdar://92459215 by using generic parameters instead of opaque result types for a couple of methods. * Internalize operator for swift CI purposes * Squash test, will enable later Co-authored-by: Hamish Knight <[email protected]>
1 parent a75fe3a commit 9b870d2

File tree

95 files changed

+4559
-7095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+4559
-7095
lines changed

Documentation/Evolution/CharacterClasses.md

Lines changed: 0 additions & 503 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
# Regex Proposals
3+
4+
## Regex Type and Overview
5+
6+
- [Proposal](https://github.com/apple/swift-evolution/blob/main/proposals/0350-regex-type-overview.md), [Thread](https://forums.swift.org/t/se-0350-regex-type-and-overview/56530)
7+
- [Pitch thread](https://forums.swift.org/t/pitch-regex-type-and-overview/56029)
8+
9+
Presents basic Regex type and gives an overview of how everything fits into the overall story
10+
11+
12+
## Regex Builder DSL
13+
14+
- [Proposal](https://github.com/apple/swift-evolution/blob/main/proposals/0351-regex-builder.md), [Thread](https://forums.swift.org/t/se-0351-regex-builder-dsl/56531)
15+
- [Pitch thread](https://forums.swift.org/t/pitch-regex-builder-dsl/56007)
16+
17+
Covers the result builder approach and basic API.
18+
19+
20+
## Run-time Regex Construction
21+
22+
- [Pitch](https://github.com/apple/swift-experimental-string-processing/blob/main/Documentation/Evolution/RegexSyntaxRunTimeConstruction.md), [Thread](https://forums.swift.org/t/pitch-2-regex-syntax-and-run-time-construction/56624)
23+
- (old) Pitch thread: [Regex Syntax](https://forums.swift.org/t/pitch-regex-syntax/55711)
24+
+ Brief: Syntactic superset of PCRE2, Oniguruma, ICU, UTS\#18, etc.
25+
26+
Covers the "interior" syntax, extended syntaxes, run-time construction of a regex from a string, and details of `AnyRegexOutput`.
27+
28+
## Regex Literals
29+
30+
- [Draft](https://github.com/apple/swift-experimental-string-processing/pull/187), [Thread](https://forums.swift.org/t/pitch-2-regex-literals/56736)
31+
- (Old) original pitch:
32+
+ [Thread](https://forums.swift.org/t/pitch-regular-expression-literals/52820)
33+
+ [Update](https://forums.swift.org/t/pitch-regular-expression-literals/52820/90)
34+
35+
36+
## String processing algorithms
37+
38+
- [Pitch thread](https://forums.swift.org/t/pitch-regex-powered-string-processing-algorithms/55969)
39+
40+
Proposes a slew of Regex-powered algorithms.
41+
42+
Introduces `CustomConsumingRegexComponent`, which is a monadic-parser style interface for external parsers to be used as components of a regex.
43+
44+
## Unicode for String Processing
45+
46+
- [Draft](https://github.com/apple/swift-experimental-string-processing/blob/main/Documentation/Evolution/UnicodeForStringProcessing.md)
47+
- (Old) [Character class definitions](https://forums.swift.org/t/pitch-character-classes-for-string-processing/52920)
48+
49+
Covers three topics:
50+
51+
- Proposes regex syntax and `RegexBuilder` API for options that affect matching behavior.
52+
- Proposes regex syntax and `RegexBuilder` API for library-defined character classes, Unicode properties, and custom character classes.
53+
- Defines how Unicode scalar-based classes are extended to grapheme clusters in the different semantic and other matching modes.
54+
55+

0 commit comments

Comments
 (0)