Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: