mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
These modules are part of the experimental declarative string processing feature. If accepted to the Standard Library, _StringProcessing will be available via implicit import just like _Concurrency, though _MatchingEngine will still be hidden as an implementation detail. `_MatchingEngine` will contain the general-purpose pattern matching engine ISA, bytecode, and executor. `_StringProcessing` will contain regular expression and pattern matching APIs whose implementation depends on the matching engine.. Also consolidates frontend flag `-enable-experimental-regex` as `-enable-experimental-string-processing`. Resolves rdar://85478647.
12 lines
264 B
Swift
12 lines
264 B
Swift
// RUN: %target-swift-frontend -enable-experimental-string-processing -parse-as-library -emit-sil -verify %s
|
|
|
|
// REQUIRES: string_processing
|
|
|
|
import _MatchingEngine
|
|
import _StringProcessing
|
|
|
|
func foo() {
|
|
_ = DummyMatchingEngine()
|
|
_ = DummyRegex<Substring>()
|
|
}
|