From 2f409d141c29228167d3a204b17124277f878459 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 28 Apr 2015 18:14:29 -0400 Subject: [PATCH] Added notes, remove error for programs --- cyclone.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cyclone.scm b/cyclone.scm index fd46f346..5d038728 100644 --- a/cyclone.scm +++ b/cyclone.scm @@ -63,11 +63,12 @@ (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")) - (else - (error "DEBUG: not a library" input-program))) + (error "TODO: I do not know how to compile a library"))) ;; TODO: how to handle stdlib when compiling a library?? + ;; either need to keep track of what was actually used, + ;; or just assume all imports were used and include them + ;; in final compiled program (set! input-program (add-libs input-program)) (set! input-program (expand input-program))