News for hackers. Stuff that matters.
Re:Writing Parsers Like it is 2017 [pdf] by adwhit on Wednesday June 28, 2017 @07:00PM (#14659329)
It may be true that parser generators are superior from a technical point of view (I can't comment), but parser combinators sure can be nice to use. I very recently used nom to implement a parser for a structured text format, it feels wonderfully expressive and you can knock together a reasonably sophisticated parser in a matter of hours. Performance-wise, it is zero-copy and chomps through a 100MB file in less than half a second on my crappy laptop, so plenty fast enough for most situations.
Re:Writing Parsers Like it is 2017 [pdf] by ufo on Wednesday June 28, 2017 @09:28PM (#14660072)
The nicest thing about parser generators, IMO, is that they can warn you if your grammar is ambiguous.