summaryrefslogtreecommitdiff
path: root/src/guile/skribilo/evaluator.scm
diff options
context:
space:
mode:
Diffstat (limited to 'src/guile/skribilo/evaluator.scm')
-rw-r--r--src/guile/skribilo/evaluator.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/guile/skribilo/evaluator.scm b/src/guile/skribilo/evaluator.scm
index 974d72a..def3280 100644
--- a/src/guile/skribilo/evaluator.scm
+++ b/src/guile/skribilo/evaluator.scm
@@ -175,16 +175,14 @@
path))
(when (> *skribe-verbose* 0)
(format (current-error-port) " [including file: ~S]\n" path))
+
(with-input-from-file path
(lambda ()
(let Loop ((exp (%default-reader (current-input-port)))
(res '()))
- (format (current-error-port) "exp=~a~%" exp)
(if (eof-object? exp)
- (begin
- (format (current-error-port) "include: eof reached~%")
- (if (and (pair? res) (null? (cdr res)))
+ (if (and (pair? res) (null? (cdr res)))
(car res)
- (reverse! res)))
+ (reverse! res))
(Loop (%default-reader (current-input-port))
(cons (%evaluate exp) res))))))))