File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
scheme-libs/racket/unison Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 44
44
;; Only valid pattern? in the functions below is p:char
45
45
[char-class-and (-> pattern? pattern? pattern?)]
46
46
[char-class-or (-> pattern? pattern? pattern?)]
47
- [char-class-not (-> pattern? pattern?)]
48
- [lookbehind1 (-> pattern? pattern?)]))
47
+ [char-class-not (-> pattern? pattern?)]))
49
48
50
49
;; -----------------------------------------------------------------------------
51
50
57
56
(struct p:char
58
57
(cpat) ; (or/c 'any (-> char? boolean?))
59
58
#:transparent )
60
- (struct p:lookbehind1
61
- (cpat) ; (or/c 'any (-> char? boolean?))
62
- #:transparent )
63
59
(struct p:literal (cstr) #:transparent )
64
60
(struct p:join (pats) #:transparent )
65
61
(struct p:or (left right) #:transparent )
136
132
137
133
(define (lookahead pat) (make-pattern (p:lookahead (pattern-pat pat))))
138
134
139
- (define (lookbehind1 cc)
140
- (error "pattern lookbehind is not implemented in the native runtime " ))
141
-
142
135
(define (negative-lookahead pat) (make-pattern (p:negative-lookahead (pattern-pat pat))))
143
136
144
137
(define (capture pat) (make-pattern (p:capture (pattern-pat pat))))
227
220
(λ (cstr captures)
228
221
(define-values [cstr* captures*] (pat-m cstr captures))
229
222
(if cstr*
230
- (ok cstr captures* )
223
+ (ok cstr captures)
231
224
(fail))
232
225
)
233
226
]
Original file line number Diff line number Diff line change 74
74
builtin-Text.patterns.anyChar:termlink
75
75
builtin-Text.patterns.char
76
76
builtin-Text.patterns.char:termlink
77
- builtin-Text.patterns.lookbehind1
78
- builtin-Text.patterns.lookbehind1:termlink
79
77
builtin-Text.patterns.charIn
80
78
builtin-Text.patterns.charIn:termlink
81
79
builtin-Text.patterns.charRange
180
178
181
179
(define-unison-builtin (builtin-Text.patterns.char cc) cc)
182
180
183
- (define-unison-builtin (builtin-Pattern.lookbehind1 cc) (lookbehind1 cc))
184
-
185
181
(define-unison-builtin (builtin-Text.patterns.charIn cs)
186
182
(chars cs))
187
183
You can’t perform that action at this time.
0 commit comments