How to read CSV data?

Although in principle a simple format, the quoting rules can be awkward

The Penlight pl.data module can be useful here, but doesn't claim to be a full replacement for a specialised CSV module.

LuaCSV is a C module for reading CSV data. However, this Lpeg solution is just as fast, which is a surprising and interesting fact.



Back