Update (free-vars) to include AST support

This commit is contained in:
Justin Ethier 2018-09-05 12:51:21 -04:00
parent 7b76453591
commit cc1bfea6f0

View file

@ -630,6 +630,9 @@
(define (search exp)
(cond
; Core forms:
((ast:lambda? exp)
(difference (reduce union (map search (ast:lambda-body exp)) '())
(ast:lambda-formals->list exp)))
((const? exp) '())
((prim? exp) '())
((quote? exp) '())