Typecheck pregexp literals correctly.
original commit: f7be12d313da40e4750d30f39826936ef5f455cd
This commit is contained in:
parent
9d88499488
commit
e82fd29852
|
@ -19,7 +19,7 @@
|
|||
syntax/stx
|
||||
scheme/contract
|
||||
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]
|
||||
[keyword* keyword])))
|
||||
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
[i:bytes -Bytes]
|
||||
[i:byte-pregexp -Byte-PRegexp]
|
||||
[i:byte-regexp -Byte-Regexp]
|
||||
[i:regexp -Regexp]
|
||||
[i:pregexp -PRegexp]
|
||||
[i:regexp -Regexp]
|
||||
[(i ...)
|
||||
(match expected
|
||||
[(Mu: var (Union: (list (Value: '()) (Pair: elem-ty (F: var)))))
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
(define-pred-stxclass atom atom?)
|
||||
(define-pred-stxclass byte-pregexp byte-pregexp?)
|
||||
(define-pred-stxclass byte-regexp byte-regexp?)
|
||||
(define-pred-stxclass pregexp pregexp?)
|
||||
(define-pred-stxclass regexp regexp?)
|
||||
(define-pred-stxclass bytes bytes?)
|
||||
(define-pred-stxclass id symbol?)
|
||||
|
|
Loading…
Reference in New Issue
Block a user