Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (with-open-file (stream "test/spigot.x")
- (do ((line (read-line stream nil)
- (read-line stream nil)))
- ((null line))
- ;; for each line do
- (defvar indent 0)
- (loop for c in line
- (case c
- ((#\SPACE #\TAB) (+ 1 indent))
- (print indent)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement