▲ | iamevn 9 days ago | |||||||
I don't follow why parser combinators would be a bad tool for CSV. It seems like one would specify a CSV parser as (pardon the pseudocode):
Seems fairly natural to me, although I'll readily admit I haven't had to write a CSV parser before so I'm surely glossing over some detail. | ||||||||
▲ | kqr 9 days ago | parent | next [-] | |||||||
I think GP was sarcastic. We have these great technologies available but people end up using duct tape and hope anyway. | ||||||||
| ||||||||
▲ | DadBase 9 days ago | parent | prev [-] | |||||||
Ah, you've clearly never had to parse a CSV exported from a municipal parking database in 2004. Quoted fields inside quoted fields, carriage returns mid-name, and a column that just says "ERROR" every 37th row. Your pseudocode would flee the scene. |