Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error recovery in the parser #13

Open
sebastianriese opened this issue Feb 23, 2013 · 1 comment
Open

Error recovery in the parser #13

sebastianriese opened this issue Feb 23, 2013 · 1 comment

Comments

@sebastianriese
Copy link
Owner

Add support for error recovery in the parser. See the Dragon Book for ideas. Good error messages for parsing errors would also be very desirable.

@sebastianriese
Copy link
Owner Author

Some work done. We implement a mechanism similar to yacc/bison. The rough idea is described in the dragon book: Add an ERROR symbol, when matching an error symbol ignore unmatching tokens, add productions to reduce ERROR on certain look-aheads.

TODO: Thorough testing, useful error messages, useful error reporting mechanism (perhaps related to issue #14, perhaps we should use logging or an error sink interface to be supplied by the user)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant