-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ellaborate error messages #12
Comments
Hi! Thanks for your interest in Bullwinkle. There are two levels of error that can happen:
|
I did a quick and dirty test of the consume method described in the SO thread. All these reported where the error was just fine: These did not work well: I think it has to do something with not parsing one token per recursive call. It parses both foo and FROM in the same call if I remember correctly. I just wanted to share my progress before I disappear again ;) I probably have to put some effort to refactor the parsing method to get a better understanding what is happening, but I don't have the time for that right now. |
Interesting! I'll flag this thread as an enhancement for the next release |
tl;dr Error messages from parsing would need some elaboration about where the error occurred.
I'm parsing from command line with a grammar file and an input string from file and it works just as I want when there are no errors. However if there is a syntax error in the input file Bullwinkle will tell me there is an error but not where it is located. Only "ERROR parsing input". It's not even clear if the error is in the input file or in the grammar. If I would have a very large input file Bullwinkle would become unusable as a parser. Maybe the error message could tell which line and column the error was detected.
The project I'm working with needs parsing from a BNF grammar but no compilation is needed. That is why this library is what I need and the user guide is very well documented. Thank you!
The text was updated successfully, but these errors were encountered: