Added another tracing option to TR.
original commit: 0b3c637f5d5215e3fced3e83433119524145b488
This commit is contained in:
parent
d1e64146d4
commit
a29f10633f
|
@ -3,6 +3,7 @@
|
|||
(require (rename-in "utils/utils.rkt" [infer r:infer])
|
||||
(except-in syntax/parse id)
|
||||
unstable/mutated-vars
|
||||
racket/pretty
|
||||
scheme/base
|
||||
(private type-contract)
|
||||
(types utils convenience)
|
||||
|
@ -51,6 +52,8 @@
|
|||
[type-name-references null])
|
||||
(do-time "Initialized Envs")
|
||||
(let ([fully-expanded-stx (local-expand stx expand-ctxt null)])
|
||||
(when (show-input?)
|
||||
(pretty-print (syntax->datum fully-expanded-stx)))
|
||||
(do-time "Local Expand Done")
|
||||
(parameterize ([mutated-vars (find-mutated-vars fully-expanded-stx)]
|
||||
[orig-module-stx (or (orig-module-stx) orig-stx)]
|
||||
|
|
|
@ -19,7 +19,7 @@ at least theoretically.
|
|||
;; timing
|
||||
start-timing do-time
|
||||
;; logging
|
||||
printf/log
|
||||
printf/log show-input?
|
||||
;; struct printing
|
||||
custom-printer define-struct/printer
|
||||
;; provide macros
|
||||
|
@ -27,6 +27,7 @@ at least theoretically.
|
|||
|
||||
(define optimize? (make-parameter #f))
|
||||
(define-for-syntax enable-contracts? #f)
|
||||
(define show-input? (make-parameter #f))
|
||||
|
||||
;; fancy require syntax
|
||||
(define-syntax (define-requirer stx)
|
||||
|
|
Loading…
Reference in New Issue
Block a user