Hacker News new | ask | show | jobs
by WalterBright 4522 days ago
The harder error messages to do well are the ones that come out of the semantic processing.

The ones coming out of the parser aren't that hard to do.

1 comments

What is your approach for generating error messages during parsing?
Ad-hoc, with the proviso that error recovery should always consume tokens, so the parser can never get stuck in a loop.