title: Any references for parsing incomplete or incorrect code?
body: <p>Can anybody point me at references on techniques for parsing code that contains syntax errors, or is missing necessary punctuation, for example? </p>
  
  <p>The application that I'm working on is an IDE, where we'd like to provide features like "jump to definition", auto-complete, and refactoring features, without requiring the source to be syntactically correct at the moment the functions are invoked. </p>
  
  <p>Most parser code I've seen appears to work on the principle of "fail early", rather than focusing on error recovery or parsing partially-complete code. </p>