Pascal J. Bourguignon <email@example.com> wrote:
| firstname.lastname@example.org (Rob Warnock) writes:
| > I agree: writing a PARSE-LINE-AS-CSV function is an excellent
| > learning tool!
| Indeed, when you start making errors at the name of the function,
| you're bound to learn a lot...
| CSV records may span several lines!
Touch�! That's one of those "special cases"
that my own CSV parser doesn't handle yet! ;-} ;-}
PARSE-STREAM-AS-CSV, then...? ;-}
Plus, since CL strings may contain #\newline, for testing
at the REPL one could write a PARSE-STRING-AS-CSV:
(defun parse-string-as-csv (string)
(with-input-from-string (s string)
Rob Warnock <email@example.com>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607