2 ms·
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
by delhanty 9y ago
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.
- tjalfi 9y agoPhillipe 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 http://jikes.sourceforge.net/documents/thesis.pdf [1] https://sourceforge.net/projects/lpg/ https://sourceforge.net/projects/lpg/