WIP, enabled debugging for diagnostic

This commit is contained in:
Justin Ethier 2017-12-13 19:12:13 -05:00
parent 6f37b8597b
commit dcc49baa3b

View file

@ -858,10 +858,10 @@
(current-error-port)) (current-error-port))
(newline (current-error-port))) (newline (current-error-port)))
;(log exp) ;(log exp)
;;(display "/* ") (display "/* ")
;;(write `(expand ,exp)) (write `(expand ,exp))
;;(display "*/ ") (display "*/ ")
;;(newline) (newline)
(cond (cond
((const? exp) exp) ((const? exp) exp)
((prim? exp) exp) ((prim? exp) exp)
@ -988,10 +988,10 @@
#;(if v #;(if v
v v
(env:lookup (car exp) rename-env #f))))))) (env:lookup (car exp) rename-env #f)))))))
;;(display "/* ") (display "/* ")
;;(write `(app DEBUG ,(car exp) ,val ,local-env ,rename-env ,(env:lookup (car exp) env #f))) (write `(app DEBUG ,(car exp) ,val ,local-env ,rename-env ,(env:lookup (car exp) env #f)))
;;(display "*/ ") (display "*/ ")
;;(newline) (newline)
(cond (cond
((tagged-list? 'macro val) ((tagged-list? 'macro val)
(_expand ; Could expand into another macro (_expand ; Could expand into another macro
@ -1081,6 +1081,7 @@
rename-env rename-env
local-env)) local-env))
((or (define-syntax? this-exp) ((or (define-syntax? this-exp)
(letrec-syntax? this-exp)
(let-syntax? this-exp) (let-syntax? this-exp)
(lambda? this-exp) (lambda? this-exp)
(set!? this-exp) (set!? this-exp)