Skip to content

Improve parsing errors reporting #47

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

Open
pombredanne opened this issue May 13, 2016 · 1 comment
Open

Improve parsing errors reporting #47

pombredanne opened this issue May 13, 2016 · 1 comment

Comments

@pombredanne
Copy link
Collaborator

pombredanne commented May 13, 2016

The exception messages returned from parse are often not really useful not meaningful. We should improve this. Also several TypeError exceptions are returned as is while parsing

pombredanne added a commit that referenced this issue May 25, 2016
 * also expose ParseError and PARSE_ERRORS in the API
@pombredanne
Copy link
Collaborator Author

Another parsing error: with this expression this () that, parsing will get this:

in test_parse_errors
    licensing.parse('with ( )this')
  File "/test.py", line 246, in parse
    expression = algebra.parse(expression, simplify)
  File "/boolean/boolean.py", line 227, in parse
    ast[0].append(ast[2])
IndexError: list index out of range

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

No branches or pull requests

1 participant