You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, yeah first of all let me apologise for not adding better documentation yet, I haven't found the time yet to properly maintain this project.
There are currently two ways to handle errors:
You let your program run and catch the exception that is thrown when a syntax error is encountered. The captured SyntaxError class itself contains the virtual parse tree of the rule that was attempted to be parsed, which might provide useful error information. You can see the examples to see how to output information.
You split your program into a parsing and interpretation step and do manual error handling. I would recommend looking at the run method's implementation to see how those steps are performed.
Eventually I hope to update this project and give it proper documentation. Until then feel free to ask here!
Hello again ;)
I have a question regarding error handling: Is it possible to provide custom error messages when a syntax error is found in the given input?
Right now the error messages are not really useful by its own (i.e. "syntax error at character 27...")
The text was updated successfully, but these errors were encountered: