Skip to content

Instantly share code, notes, and snippets.

Created February 6, 2010 05:00
(defun decide-next-step ()
"Decide what to do next based on the current character"
(let ((c (read-char stream nil)))
(cond ((not c) (add-char-to-out #\newline) out-paragraph)
((char= #\% c) (throw-away-until-newline))
((char= #\\ c) (check-for-frame-title))
(t (decide-next-step)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment