Provide tc-literal.
svn: r14754 original commit: c2da52d661d95092e55a3bdc069949f2a1fe5683
This commit is contained in:
parent
270ea45d4b
commit
a7cdd78864
|
@ -11,6 +11,7 @@
|
|||
|
||||
(define-signature tc-expr^
|
||||
([cnt tc-expr (syntax? . -> . tc-results?)]
|
||||
[cnt tc-literal (->* (syntax?) ((or/c #f Type/c)) Type/c)]
|
||||
[cnt tc-expr/check (syntax? tc-results? . -> . tc-results?)]
|
||||
[cnt tc-expr/check/t (syntax? tc-results? . -> . Type/c)]
|
||||
[cnt check-below (->d ([s (or/c Type/c tc-results?)] [t (or/c Type/c tc-results?)]) () [_ (if (Type? s) Type/c tc-results?)])]
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
|
||||
;; return the type of a literal value
|
||||
;; scheme-value -> type
|
||||
(d/c (tc-literal v-stx [expected #f])
|
||||
(-->* (syntax?) ((-or/c #f Type/c)) Type/c)
|
||||
(define (tc-literal v-stx [expected #f])
|
||||
(define-syntax-class exp
|
||||
(pattern i
|
||||
#:when expected
|
||||
|
|
Loading…
Reference in New Issue
Block a user