Only print when debugging as a program

This commit is contained in:
Justin Ethier 2019-09-10 17:47:26 -04:00
parent 526032e52f
commit 95922d257e

View file

@ -57,7 +57,9 @@
(append vars (filter include-var? syms))) (append vars (filter include-var? syms)))
(define (search exp vars) (define (search exp vars)
(pretty-print `(search ,exp ,vars))(newline) (cond-expand
(program
(pretty-print `(search ,exp ,vars))(newline))) ;; Debugging
(cond (cond
;((ast:lambda? exp) 'TODO) ;((ast:lambda? exp) 'TODO)
((const? exp) #f) ((const? exp) #f)