Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
WalterBright
on Feb 4, 2014
|
parent
|
context
|
favorite
| on:
So you want to write your own language?
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
on Feb 5, 2014
[–]
What is your approach for generating error messages during parsing?
WalterBright
on Feb 6, 2014
|
parent
[–]
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:
The ones coming out of the parser aren't that hard to do.