News for hackers. Stuff that matters.
Re:So you want to write your own language? by WalterBright on Tuesday February 04, 2014 @02:49PM (#7179846)
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.

Re:So you want to write your own language? by mattfenwick on Tuesday February 04, 2014 @07:21PM (#7181162)
What is your approach for generating error messages during parsing?
Re:So you want to write your own language? by WalterBright on Wednesday February 05, 2014 @10:31PM (#7188566)
Ad-hoc, with the proviso that error recovery should always consume tokens, so the parser can never get stuck in a loop.