mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
7dce420886
commit
3bcf956a29
1 changed files with 6 additions and 3 deletions
|
@ -25,6 +25,7 @@
|
|||
(scheme cyclone transforms)
|
||||
(srfi 69))
|
||||
(export
|
||||
optimize-cps
|
||||
analyze-cps
|
||||
opt:contract
|
||||
;adb:init!
|
||||
|
@ -237,9 +238,11 @@
|
|||
(ast:%make-lambda
|
||||
(ast:lambda-id exp)
|
||||
(ast:lambda-args exp)
|
||||
(ast:lambda-body exp)));)
|
||||
((ref? exp) exp)
|
||||
(opt:contract (ast:lambda-body exp))));)
|
||||
((const? exp) exp)
|
||||
((ref? exp) exp)
|
||||
((prim? exp) exp)
|
||||
((quote? exp) exp)
|
||||
((define? exp)
|
||||
`(define ,(opt:contract (define->var exp))
|
||||
,(opt:contract (define->exp exp))))
|
||||
|
@ -261,7 +264,7 @@
|
|||
)
|
||||
|
||||
(define (optimize-cps ast)
|
||||
(analyze-cps input-program)
|
||||
(analyze-cps ast)
|
||||
(trace:info "---------------- cps analysis db:")
|
||||
(trace:info (adb:get-db))
|
||||
(opt:contract ast)
|
||||
|
|
Loading…
Add table
Reference in a new issue