3 ms·
I've never had it once in my career where using a parser generator wasn't better. Given that it's an in-language parser generator and not some meta-language mon
by valenterry 3y ago
I've never had it once in my career where using a parser generator wasn't better. Given that it's an in-language parser generator and not some meta-language monstrum like ANTLR.
Maybe when writing your own programming language, own complicated data format or low communication protocoll while requiring extreme performance. But that seems to be super rare, at least in my area of profession.
- ch4s3 3y agoI’ve had a very different experience. I can think of three occasions where I was able compare a hand written parser with something built using a parser generator or similar tool. In two of those cases, the hand written code was far easier to read and modify. This kind of code can also be easier to test. Parser generators aren’t a free lunch and they vary considerably in quality.
- valenterry 3y agoMaybe we talk about two different things. I'm talking about libraries that help you write a parser. Those are not tools, there is no extra build-process involved or anything like that.