News for hackers. Stuff that matters.
Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by delhanty on Saturday October 14, 2017 @09:15PM (#15475308)
Thank you - that's very useful information!

I had been wondering how one was meant to provide meaningful error messages for code that failed to parse or failed to lex using the LR approach and looks like maybe the answer is "with difficulty", which is definitely a downer.

Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by tjalfi on Monday October 16, 2017 @02:54AM (#15481353)
Phillipe Charles Phd thesis[0] describes a method for generating good error messages with an LALR parser generator. lpg[1] implements these techniques.

[0] http://jikes.sourceforge.net/documents/thesis.pdf

[1] https://sourceforge.net/projects/lpg/