Typecheck pregexp literals correctly.

This commit is contained in:
Vincent St-Amour 2011-07-22 15:54:30 -04:00
parent 27cd6aca6f
commit f7be12d313
3 changed files with 4 additions and 2 deletions

View File

@ -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])))

View File

@ -75,6 +75,7 @@
[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:pregexp -PRegexp]
[i:regexp -Regexp] [i:regexp -Regexp]
[(i ...) [(i ...)
(match expected (match expected

View File

@ -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?)