mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
Bug fix, debug stubs
This commit is contained in:
parent
49fe5bdef6
commit
3df66cfa6d
1 changed files with 10 additions and 2 deletions
|
@ -150,7 +150,8 @@
|
|||
((ast:lambda? exp)
|
||||
(let* ((id (ast:lambda-id exp))
|
||||
(fnc (adb:get id)))
|
||||
(adbf:set-simple! (simple-lambda? exp))
|
||||
;(trace:error `(adb:get ,id ,fnc))
|
||||
(adbf:set-simple! fnc (simple-lambda? exp))
|
||||
(for-each
|
||||
(lambda (expr)
|
||||
(analyze2 expr))
|
||||
|
@ -211,11 +212,18 @@
|
|||
(let ((body (ast:lambda-body ast))
|
||||
(formals (ast:lambda-formals->list ast))
|
||||
(id (ast:lambda-id ast)))
|
||||
;(trace:error `(simple-lambda? ,id ,formals
|
||||
;,(and (pair? body)
|
||||
; (app? body)
|
||||
; (ast:lambda? (car body)))
|
||||
;,(length formals)
|
||||
;,body))
|
||||
(and (pair? body)
|
||||
(app? body)
|
||||
(ast:lambda? (car body))
|
||||
(> (length formals) 0)
|
||||
(equal? (app->args body)
|
||||
formals)
|
||||
(not (any-nonlocal-refs? id formals)))))
|
||||
(not (any-nonlocal-refs? id formals))
|
||||
)))
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue