mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-06 04:36:36 +02:00
WIP - renaming of library exports
This commit is contained in:
parent
7d9aae56d8
commit
dbb4ab83a4
1 changed files with 9 additions and 0 deletions
|
@ -68,6 +68,15 @@
|
||||||
(lib:exports (car input-program))))
|
(lib:exports (car input-program))))
|
||||||
(set! imports (lib:imports (car input-program)))
|
(set! imports (lib:imports (car input-program)))
|
||||||
(set! input-program (lib:body (car input-program)))
|
(set! input-program (lib:body (car input-program)))
|
||||||
|
; Add any renamed exports to the begin section
|
||||||
|
;(let ((renames (lib:rename-exports (car input-program))))
|
||||||
|
; (set! input-program
|
||||||
|
; (append
|
||||||
|
; (map
|
||||||
|
; (lambda (r)
|
||||||
|
; `(define ,(caddr r) ,(cadr r)))
|
||||||
|
; renames)
|
||||||
|
; input-program)))
|
||||||
;; Prepend any included files into the begin section
|
;; Prepend any included files into the begin section
|
||||||
(if (not (null? includes))
|
(if (not (null? includes))
|
||||||
(for-each
|
(for-each
|
||||||
|
|
Loading…
Add table
Reference in a new issue