Typecheck pregexp literals correctly.
This commit is contained in:
parent
27cd6aca6f
commit
f7be12d313
|
@ -19,7 +19,7 @@
|
||||||
syntax/stx
|
syntax/stx
|
||||||
scheme/contract
|
scheme/contract
|
||||||
racket/syntax
|
racket/syntax
|
||||||
(rename-in (except-in (utils utils stxclass-util) bytes byte-regexp regexp byte-pregexp #;pregexp)
|
(rename-in (except-in (utils utils stxclass-util) bytes byte-regexp regexp byte-pregexp pregexp)
|
||||||
[id* id]
|
[id* id]
|
||||||
[keyword* keyword])))
|
[keyword* keyword])))
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,8 @@
|
||||||
[i:bytes -Bytes]
|
[i:bytes -Bytes]
|
||||||
[i:byte-pregexp -Byte-PRegexp]
|
[i:byte-pregexp -Byte-PRegexp]
|
||||||
[i:byte-regexp -Byte-Regexp]
|
[i:byte-regexp -Byte-Regexp]
|
||||||
[i:regexp -Regexp]
|
[i:pregexp -PRegexp]
|
||||||
|
[i:regexp -Regexp]
|
||||||
[(i ...)
|
[(i ...)
|
||||||
(match expected
|
(match expected
|
||||||
[(Mu: var (Union: (list (Value: '()) (Pair: elem-ty (F: var)))))
|
[(Mu: var (Union: (list (Value: '()) (Pair: elem-ty (F: var)))))
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
(define-pred-stxclass atom atom?)
|
(define-pred-stxclass atom atom?)
|
||||||
(define-pred-stxclass byte-pregexp byte-pregexp?)
|
(define-pred-stxclass byte-pregexp byte-pregexp?)
|
||||||
(define-pred-stxclass byte-regexp byte-regexp?)
|
(define-pred-stxclass byte-regexp byte-regexp?)
|
||||||
|
(define-pred-stxclass pregexp pregexp?)
|
||||||
(define-pred-stxclass regexp regexp?)
|
(define-pred-stxclass regexp regexp?)
|
||||||
(define-pred-stxclass bytes bytes?)
|
(define-pred-stxclass bytes bytes?)
|
||||||
(define-pred-stxclass id symbol?)
|
(define-pred-stxclass id symbol?)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user