3 ms·
> Yes – a recursive descent parser written from scratch in perl5 – pay dirt! What made the author write this in the first place? He could use one of the many m
by bmn__ 7y ago
> Yes – a recursive descent parser written from scratch in perl5 – pay dirt!
What made the author write this in the first place? He could use one of the many many parsing libraries, and then at least the comparison with Raku grammars would be honest and fair.
- hedora 7y agoI’d prefer to write a hundred or so lines of code to adding a dependency. I can usually get those 100 lines of code right in an afternoon, but keeping up with the dependency is ongoing maintenance. The dependency could break compatibility or add a bug a year from now.
- RicardoLuis0 7y agoParsers aren't particularly difficult to write, and even if a hand-coded parser might not be very efficient compared to a generated one, it's unlikely to be a significant factor in the overall performance of the application. Compared to the complexity overhead of adding another dependency, be it a library or an external parser generator, i feel it's a fair trade-off.