Re:Learning to write a compiler
by carterschonwald on Sunday August 29, 2010 @11:56AM
(#1643968)
this is also very very very true. And thus why parsing combinator libraries are one of the sanest defaults one can adopt in dealing with parsing
Also, IDE / editor support like intellisense can greatly benefit from integration with a recursive descent parser. If you encode the cursor's position as a special token, the parser can handle that token and do a deep return (throw an exception, longjmp, whatever) with relevant context, active scopes, etc.