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


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607