[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Code Request: CSV parser written in Lua
- From: Reuben Thomas <rrt1001@...>
- Date: Thu, 23 Nov 2000 13:15:54 +0000 (GMT)
On Thu, 23 Nov 2000, Roberto Ierusalimschy wrote:
> Follows my code for this task (I had it already). CSV is not an easy task
> for Lua, mostly because of the '""' rule (a "" inside quotes is a single
> quote, but outside quotes this is simply the empty string). It would be
> much simpler if it used a conventional escape mechanism (such as '\"').
I don't think it would help in this case, but for many pattern-matching
activities, POSIX regexs are much better than what Lua provides (mainly
because of alternation). My rexlib provides access to these (see
http://sc3d.org/rrt under "Lua").
http://sc3d.org/rrt/ | plagiarism, n. the mind burgles