misc things

svn: r8866
This commit is contained in:
Eli Barzilay 2008-03-04 02:46:54 +00:00
parent f1a68778d2
commit 5ff5d6c580
40 changed files with 27 additions and 62 deletions

View File

@ -26,4 +26,3 @@
(provide (rename-out [b* b] ...))
(provide (all-from-out ts))
(provide (all-from-out lb) ...))))))]))

View File

@ -12,4 +12,3 @@
(r:read-syntax src in))))
(provide (rename-out [*read read] [*read-syntax read-syntax])))

View File

@ -107,4 +107,4 @@
[(a . b)
(loop #'a)
(loop #'b)]
[_ (void)])))
[_ (void)])))

View File

@ -7,4 +7,4 @@
(define-struct binding (name) #:inspector #f)
(define-struct (def-binding binding) (ty) #:inspector #f)
(define-struct (def-stx-binding binding) () #:inspector #f)
(define-struct (def-stx-binding binding) () #:inspector #f)

View File

@ -19,4 +19,4 @@
(define-struct/properties nm1 (flds1 ...) props #f)
(define-struct (nm par) (flds ...) #f) ...))]))
)
)

View File

@ -6,4 +6,4 @@
(error "Assertion failed - value was #f"))
v)
)
)

View File

@ -95,4 +95,4 @@
(syntax-case stx ()
[(_ table val . body)
(quasisyntax/loc stx
(hash-table-get table val #,(syntax/loc #'body (lambda () . body))))]))
(hash-table-get table val #,(syntax/loc #'body (lambda () . body))))]))

View File

@ -404,7 +404,3 @@
(define infer/list (mk-infer infer/int/list))
;(trace infer infer/int/list infer/int infer/list)

View File

@ -73,6 +73,4 @@
)
)

View File

@ -12,4 +12,4 @@
define-typed-struct/exec-internal
assert-predicate-internal
:-internal)
)
)

View File

@ -47,4 +47,4 @@
id
(lambda () (let ([c (id-count!)])
(module-identifier-mapping-put! identifier-table id c)
c))))
c))))

View File

@ -48,4 +48,4 @@
[(_ f i . b)
(with-lexical-env (update-type/lexical f i) . b)]))
)
)

View File

@ -49,4 +49,4 @@
(provide find-mutated-vars is-var-mutated?)
)
)

View File

@ -207,4 +207,3 @@
(string? (syntax-e #'t)))
(-val (syntax-e #'t))]
[_ (tc-error "not a valid type: ~a" (syntax->datum stx))])))

View File

@ -46,4 +46,4 @@
"util.ss")
(planet/multiple ("cce" "fasttest.plt" 1 2)
"random.ss"
"schemeunit.ss"))
"schemeunit.ss"))

View File

@ -331,5 +331,3 @@ This file defines two sorts of primitives. All of them are provided into any mod
(begin e1 e2 ...)
(begin c ... (doloop step ...)))))]))]))

View File

@ -106,4 +106,4 @@
(tc-error "provide: protect not supported by Typed Scheme")]
[_ (int-err "unknown provide form")])))
(syntax->list #'(form ...)))]
[_ (int-err "non-provide form! ~a" (syntax->datum form))]))
[_ (int-err "non-provide form! ~a" (syntax->datum form))]))

View File

@ -92,5 +92,3 @@
;(trace *remove)
;(trace restrict)

View File

@ -158,7 +158,3 @@
frees)))])))
(values (mk #'Type #'type-name-ht) (mk #'Effect #'effect-name-ht))))

View File

@ -76,4 +76,4 @@
;(trace resolve-type)
|#
|#

View File

@ -39,4 +39,4 @@
(define-signature tc-let^
(tc/let-values tc/letrec-values tc/let-values/check tc/letrec-values/check))
)
)

View File

@ -268,5 +268,3 @@
;(subtype (-> Univ B) (-> Univ Univ))
;(subtype (make-poly '(a) (make-tvar 'a)) (make-lst N))

View File

@ -38,5 +38,3 @@
(define (insert k v t)
(cons (cons k v) t))

View File

@ -311,4 +311,4 @@
(cond [(null? exprs) (check-below (ret -Void) expected)]
[(null? (cdr exprs)) (tc-expr/check (car exprs) expected)]
[else (tc-expr/check (car exprs) Univ)
(tc-exprs/check (cdr exprs) expected)]))
(tc-exprs/check (cdr exprs) expected)]))

View File

@ -221,5 +221,4 @@
(ret t))])))
;)
;)

View File

@ -249,4 +249,4 @@
|#
|#

View File

@ -241,5 +241,3 @@
(tc-toplevel/pass1 form)
(tc-toplevel/pass2 form))

View File

@ -85,4 +85,4 @@
(define (add-type-name-reference t)
(type-name-references (cons t (type-name-references))))
)
)

View File

@ -47,8 +47,3 @@
((drscheme:language:get-default-mixin)
mbl%)))))))
)

View File

@ -5,4 +5,4 @@
)
)

View File

@ -228,4 +228,4 @@
[_ (exit t)]))))
)
)

View File

@ -142,4 +142,4 @@
(set-box! print-type* print-type)
(set-box! print-effect* print-effect)
)
)

View File

@ -57,4 +57,4 @@
[else (extend-env (list ks) (list vs) env)]))
env kss vss))
)
)

View File

@ -40,5 +40,3 @@
;; (id type -> T) -> listof[T]
(define (type-name-env-map f)
(module-identifier-mapping-map the-mapping f))

View File

@ -430,5 +430,4 @@
[Poly-body* Poly-body]))
;(trace unfold)

View File

@ -75,4 +75,4 @@
(define (fv t) (hash-table-map (free-vars* t) (lambda (k v) k)))
;; fv/list : Listof[Type] -> Listof[Name]
(define (fv/list ts) (hash-table-map (combine-frees (map free-vars* ts)) (lambda (k v) k)))
(define (fv/list ts) (hash-table-map (combine-frees (map free-vars* ts)) (lambda (k v) k)))

View File

@ -59,4 +59,4 @@
;(trace u-maker)
(set-union-maker! u-maker)
)
)

View File

@ -90,4 +90,4 @@
(define-values/link-units/infer (export x^) x@ y@)
)
)

View File

@ -117,5 +117,3 @@
[(symbol? v) (symbol->string v)]
[(identifier? v) (symbol->string (syntax-e v))]))
(datum->syntax kw (string->symbol (apply string-append (map f args)))))

View File

@ -23,8 +23,7 @@
"private/type-contract.ss"
"private/nest.ss"
syntax/kerncase
mzlib/list
mzlib/plt-match))
scheme/match))
(provide