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

Happy parse error messages should include more information #159

Open
harpocrates opened this issue Nov 5, 2019 · 1 comment
Open

Happy parse error messages should include more information #159

harpocrates opened this issue Nov 5, 2019 · 1 comment

Comments

@harpocrates
Copy link
Contributor

Right now, parse errors include only the line number. For example:

Calc.ly:40: Parse error

It would be helpful to include a bit more easily accessible info:

  • the token on which parsing failed
  • the column position of that token
@anka-213
Copy link

Would it also be possible to include information about what token was expected like in megaparsec? In theory that information should be available as well, but maybe it's not available in the generated code?

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

2 participants