Subject: Re: Lisp for market analysis?
From: (Rob Warnock)
Date: Fri, 19 Jun 2009 21:30:16 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
Pascal J. Bourguignon <> wrote:
| (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)
	(parse-stream-as-csv s)))


Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607