2 ms·
I wrote a CSV-reading library 16 years ago that I'm pleasantly surprised handled most of the points of trickiness the article mentions. https://www.neilvandyke
by neilv 7y ago
I wrote a CSV-reading library 16 years ago that I'm pleasantly surprised handled most of the points of trickiness the article mentions.
https://www.neilvandyke.org/racket/csv-reading/ https://www.neilvandyke.org/racket/csv-reading/
The documentation section "Reader Specs" gives a good idea of the different variations it intends to handle. I was working from a sense of variations I'd seen myself, and extrapolating.
One thing I also did, which I didn't see in the article, was to support comments.
Unfortunately, at the time I wrote it, there was no standard Unicode support for Scheme, so I didn't get into that, but just used the character abstraction (which might or might not involve parsing of a particular non-ASCII encoding).
Fortunately, AFAIK, it's worked for people, since fixing/extending it at this point would mean relearning the code. :)