mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 22:17:33 +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)
|
(define (search exp)
|
||||||
(cond
|
(cond
|
||||||
; Core forms:
|
; Core forms:
|
||||||
|
((ast:lambda? exp)
|
||||||
|
(difference (reduce union (map search (ast:lambda-body exp)) '())
|
||||||
|
(ast:lambda-formals->list exp)))
|
||||||
((const? exp) '())
|
((const? exp) '())
|
||||||
((prim? exp) '())
|
((prim? exp) '())
|
||||||
((quote? exp) '())
|
((quote? exp) '())
|
||||||
|
|
Loading…
Add table
Reference in a new issue