Skip to content

Commit b555080

Browse files
committed
Revert scheme files
1 parent 9ac3da5 commit b555080

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

scheme-libs/racket/unison/pattern.rkt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
;; Only valid pattern? in the functions below is p:char
4545
[char-class-and (-> pattern? pattern? pattern?)]
4646
[char-class-or (-> pattern? pattern? pattern?)]
47-
[char-class-not (-> pattern? pattern?)]
48-
[lookbehind1 (-> pattern? pattern?)]))
47+
[char-class-not (-> pattern? pattern?)]))
4948

5049
;; -----------------------------------------------------------------------------
5150

@@ -57,9 +56,6 @@
5756
(struct p:char
5857
(cpat) ; (or/c 'any (-> char? boolean?))
5958
#:transparent)
60-
(struct p:lookbehind1
61-
(cpat) ; (or/c 'any (-> char? boolean?))
62-
#:transparent)
6359
(struct p:literal (cstr) #:transparent)
6460
(struct p:join (pats) #:transparent)
6561
(struct p:or (left right) #:transparent)
@@ -136,9 +132,6 @@
136132

137133
(define (lookahead pat) (make-pattern (p:lookahead (pattern-pat pat))))
138134

139-
(define (lookbehind1 cc)
140-
(error "pattern lookbehind is not implemented in the native runtime"))
141-
142135
(define (negative-lookahead pat) (make-pattern (p:negative-lookahead (pattern-pat pat))))
143136

144137
(define (capture pat) (make-pattern (p:capture (pattern-pat pat))))
@@ -227,7 +220,7 @@
227220
(λ (cstr captures)
228221
(define-values [cstr* captures*] (pat-m cstr captures))
229222
(if cstr*
230-
(ok cstr captures*)
223+
(ok cstr captures)
231224
(fail))
232225
)
233226
]

scheme-libs/racket/unison/primops/pattern.rkt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
builtin-Text.patterns.anyChar:termlink
7575
builtin-Text.patterns.char
7676
builtin-Text.patterns.char:termlink
77-
builtin-Text.patterns.lookbehind1
78-
builtin-Text.patterns.lookbehind1:termlink
7977
builtin-Text.patterns.charIn
8078
builtin-Text.patterns.charIn:termlink
8179
builtin-Text.patterns.charRange
@@ -180,8 +178,6 @@
180178

181179
(define-unison-builtin (builtin-Text.patterns.char cc) cc)
182180

183-
(define-unison-builtin (builtin-Pattern.lookbehind1 cc) (lookbehind1 cc))
184-
185181
(define-unison-builtin (builtin-Text.patterns.charIn cs)
186182
(chars cs))
187183

0 commit comments

Comments
 (0)