Skip to content

Commit 748e0ac

Browse files
committed
Add read-line for Con compile-file.
1 parent ea42743 commit 748e0ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

www/notes/con/compile-file.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
(define (main fn)
99
(with-input-from-file fn
1010
(λ ()
11-
(let ((p (read)))
11+
(let ((_ (read-line))
12+
(p (read)))
1213
(unless (expr? p) (error "syntax error" p))
1314
(asm-display (compile p))))))

0 commit comments

Comments
 (0)