mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
Update (free-vars) to include AST support
This commit is contained in:
parent
7b76453591
commit
cc1bfea6f0
1 changed files with 3 additions and 0 deletions
|
@ -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) '())
|
||||
|
|
Loading…
Add table
Reference in a new issue