
31 Aug
2018
31 Aug
'18
12:43 p.m.
Am 31.08.2018 um 16:55 schrieb Peter Simons:
Parsec and the newer Megaparsec, on the other hand, put more emphasis on good error messages than an performance. Now, good error messages matter when you're parsing a sophisticated input language with many different non-trivial constructs, but for a CSV parser there's really not much to be done in terms of "good error messages" because the syntax is so simple. Therefore, Parsec might not be the best choice for that particular use-case.
Indeed, since CSV is a regular language I'd exploit that by using e.g. regex-applicative and enjoy guaranteed linear time parsing. Cheers Ben