mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-10 22:37:38 +02:00
First step to handle import's
This commit is contained in:
parent
842ddb597b
commit
a086afea2d
1 changed files with 6 additions and 2 deletions
|
@ -52,6 +52,7 @@
|
|||
(lambda (return)
|
||||
(define globals '())
|
||||
(define program? #t) ;; Are we building a program or a library?
|
||||
(define imports '())
|
||||
(define lib-name '())
|
||||
(define lib-exports '())
|
||||
(define lib-imports '())
|
||||
|
@ -67,8 +68,11 @@
|
|||
(set! lib-name (lib:name (car input-program)))
|
||||
(set! lib-exports (lib:exports (car input-program)))
|
||||
(set! lib-imports (lib:imports (car input-program)))
|
||||
(set! input-program (lib:body (car input-program)))
|
||||
;(error "TODO: I do not know how to compile a library")
|
||||
(set! input-program (lib:body (car input-program))))
|
||||
((tagged-list? 'import (car input-program))
|
||||
(set! imports (cdar input-program))
|
||||
(set! input-program (cdr input-program))
|
||||
;(error (list 'imports (cdar input-program)))
|
||||
))
|
||||
|
||||
;; TODO: how to handle stdlib when compiling a library??
|
||||
|
|
Loading…
Add table
Reference in a new issue