this post was submitted on 27 Jul 2025
6 points (100.0% liked)

Hacker News

2639 readers
351 users here now

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

founded 1 year ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] henfredemars 1 points 1 month ago* (last edited 1 month ago)

I strongly prefer recursive descent for parsers for a different reason: clarity. They are easy to read and they are easy to generate helpful error messages for the user because right there in the code of your parser you can provide great, contextually-relevant error messages.

I’ve tried parser generators a few times, but after running with the code for a while, it just doesn’t offer me the level of error reporting flexibility that I can achieve using a simple descent.