4 ms·
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.
by WalterBright 13y 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.
- mattfenwick 13y agoWhat is your approach for generating error messages during parsing?
- WalterBright 13y agoAd-hoc, with the proviso that error recovery should always consume tokens, so the parser can never get stuck in a loop.