moved get-lines to common.scm

This commit is contained in:
2021-12-12 12:29:44 +01:00
parent bdc9004df6
commit 0388455b85
2 changed files with 8 additions and 6 deletions

View File

@@ -1,9 +1,4 @@
; get list of lines from a file
(define (get-lines file)
(let loop [(lines '())]
(if (eof-object? (peek-char file))
lines
(loop (cons (get-line file) lines)))))
(load "../common.scm")
; check if character can close chunk
(define (closing? c)