Skip to content

Instantly share code, notes, and snippets.

@meangrape
Created March 7, 2020 23:40
Show Gist options
  • Save meangrape/993e43851ab3cc98f7684b0b8e88cffa to your computer and use it in GitHub Desktop.
Save meangrape/993e43851ab3cc98f7684b0b8e88cffa to your computer and use it in GitHub Desktop.
PL question
Oh, there's been a TON of work on this.
(1) back in the day, it was an enormous area of work: not so much "error-recovery" but "error-detection with most-perspicuous-possible error-messages, including if possible examples"
(2) I know that Menhir (the Ocaml parser-generator) has some support for this.
(3) I know that in fact, this is a good reason to WANT to use a parser-generator -- b/c the GRAMMAR will allow you to detect many cases of syntactic errors automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment