@@ -18,7 +18,7 @@ extension DSLTree.Node {
1818 /// the front of an input range
1919 func generateConsumer(
2020 _ opts: MatchingOptions
21- ) throws -> MEProgram < String > . ConsumeFunction ? {
21+ ) throws -> MEProgram . ConsumeFunction ? {
2222 switch self {
2323 case . atom( let a) :
2424 return try a. generateConsumer ( opts)
@@ -56,7 +56,7 @@ extension DSLTree.Atom {
5656 // top-level nodes, but it's also invoked for `.atom` members of a custom CC
5757 func generateConsumer(
5858 _ opts: MatchingOptions
59- ) throws -> MEProgram < String > . ConsumeFunction ? {
59+ ) throws -> MEProgram . ConsumeFunction ? {
6060 let isCaseInsensitive = opts. isCaseInsensitive
6161
6262 switch self {
@@ -142,7 +142,7 @@ extension String {
142142 }
143143}
144144
145- func consumeName( _ name: String , opts: MatchingOptions ) -> MEProgram < String > . ConsumeFunction {
145+ func consumeName( _ name: String , opts: MatchingOptions ) -> MEProgram . ConsumeFunction {
146146 let consume = consumeFunction ( for: opts)
147147 return consume ( propertyScalarPredicate {
148148 // FIXME: name aliases not covered by $0.nameAlias are missed
@@ -180,7 +180,7 @@ extension AST.Atom {
180180
181181 func generateConsumer(
182182 _ opts: MatchingOptions
183- ) throws -> MEProgram < String > . ConsumeFunction ? {
183+ ) throws -> MEProgram . ConsumeFunction ? {
184184 // TODO: Wean ourselves off of this type...
185185 if let cc = self . characterClass? . withMatchLevel (
186186 opts. matchLevel
@@ -237,7 +237,7 @@ extension AST.Atom {
237237extension DSLTree . CustomCharacterClass . Member {
238238 func generateConsumer(
239239 _ opts: MatchingOptions
240- ) throws -> MEProgram < String > . ConsumeFunction {
240+ ) throws -> MEProgram . ConsumeFunction {
241241 switch self {
242242 case let . atom( a) :
243243 guard let c = try a. generateConsumer ( opts) else {
@@ -344,7 +344,7 @@ extension DSLTree.CustomCharacterClass.Member {
344344extension DSLTree . CustomCharacterClass {
345345 func generateConsumer(
346346 _ opts: MatchingOptions
347- ) throws -> MEProgram < String > . ConsumeFunction {
347+ ) throws -> MEProgram . ConsumeFunction {
348348 // NOTE: Easy way to implement, obviously not performant
349349 let consumers = try members. map {
350350 try $0. generateConsumer ( opts)
@@ -386,7 +386,7 @@ private func propertyScalarPredicate(_ p: @escaping (Unicode.Scalar.Properties)
386386
387387func consumeScalar(
388388 _ p: @escaping ScalarPredicate
389- ) -> MEProgram < String > . ConsumeFunction {
389+ ) -> MEProgram . ConsumeFunction {
390390 { input, bounds in
391391 // TODO: bounds check?
392392 let curIdx = bounds. lowerBound
@@ -399,7 +399,7 @@ func consumeScalar(
399399}
400400func consumeCharacterWithLeadingScalar(
401401 _ p: @escaping ScalarPredicate
402- ) -> MEProgram < String > . ConsumeFunction {
402+ ) -> MEProgram . ConsumeFunction {
403403 { input, bounds in
404404 let curIdx = bounds. lowerBound
405405 if p ( input [ curIdx] . unicodeScalars. first!) {
@@ -410,7 +410,7 @@ func consumeCharacterWithLeadingScalar(
410410}
411411func consumeCharacterWithSingleScalar(
412412 _ p: @escaping ScalarPredicate
413- ) -> MEProgram < String > . ConsumeFunction {
413+ ) -> MEProgram . ConsumeFunction {
414414 { input, bounds in
415415 let curIdx = bounds. lowerBound
416416
@@ -423,7 +423,7 @@ func consumeCharacterWithSingleScalar(
423423
424424func consumeFunction(
425425 for opts: MatchingOptions
426- ) -> ( @escaping ScalarPredicate ) -> MEProgram < String > . ConsumeFunction {
426+ ) -> ( @escaping ScalarPredicate ) -> MEProgram . ConsumeFunction {
427427 opts. semanticLevel == . graphemeCluster
428428 ? consumeCharacterWithLeadingScalar
429429 : consumeScalar
@@ -432,11 +432,11 @@ func consumeFunction(
432432extension AST . Atom . CharacterProperty {
433433 func generateConsumer(
434434 _ opts: MatchingOptions
435- ) throws -> MEProgram < String > . ConsumeFunction {
435+ ) throws -> MEProgram . ConsumeFunction {
436436 // Handle inversion for us, albeit not efficiently
437437 func invert(
438- _ p: @escaping MEProgram < String > . ConsumeFunction
439- ) -> MEProgram < String > . ConsumeFunction {
438+ _ p: @escaping MEProgram . ConsumeFunction
439+ ) -> MEProgram . ConsumeFunction {
440440 return { input, bounds in
441441 if p ( input, bounds) != nil { return nil }
442442
@@ -448,7 +448,7 @@ extension AST.Atom.CharacterProperty {
448448 }
449449
450450 let consume = consumeFunction ( for: opts)
451- let preInversion : MEProgram < String > . ConsumeFunction =
451+ let preInversion : MEProgram . ConsumeFunction =
452452 try {
453453 switch kind {
454454 // TODO: is this modeled differently?
@@ -533,7 +533,7 @@ extension Unicode.BinaryProperty {
533533 // FIXME: Semantic level, vet for precise defs
534534 func generateConsumer(
535535 _ opts: MatchingOptions
536- ) throws -> MEProgram < String > . ConsumeFunction {
536+ ) throws -> MEProgram . ConsumeFunction {
537537 let consume = consumeFunction ( for: opts)
538538
539539 // Note if you implement support for any of the below, you need to adjust
@@ -701,7 +701,7 @@ extension Unicode.POSIXProperty {
701701 // FIXME: Semantic level, vet for precise defs
702702 func generateConsumer(
703703 _ opts: MatchingOptions
704- ) -> MEProgram < String > . ConsumeFunction {
704+ ) -> MEProgram . ConsumeFunction {
705705 let consume = consumeFunction ( for: opts)
706706
707707 // FIXME: modes, etc
@@ -749,7 +749,7 @@ extension Unicode.ExtendedGeneralCategory {
749749 // FIXME: Semantic level
750750 func generateConsumer(
751751 _ opts: MatchingOptions
752- ) throws -> MEProgram < String > . ConsumeFunction {
752+ ) throws -> MEProgram . ConsumeFunction {
753753 let consume = consumeFunction ( for: opts)
754754
755755 switch self {
0 commit comments