Reputation: 21
I am implementing a compiler for a contest in clojure. Where the input program should be read from STDIN till the end-of-file character. How can I do that?
Upvotes: 1
Views: 552
Reputation: 657
Try line-seq function
line-seq
(line-seq (java.io.BufferedReader. *in*))
Upvotes: 2