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

NotImplementedError of unknown origin #12

Open
dubslow opened this issue Aug 29, 2015 · 2 comments
Open

NotImplementedError of unknown origin #12

dubslow opened this issue Aug 29, 2015 · 2 comments

Comments

@dubslow
Copy link

dubslow commented Aug 29, 2015

Trying to parse this old file I had laying around as a test case: http://pastebin.com/yYr12cMH

This is the very simple parsing code (just uses pycparser's parse_file with the parser=GnuCParser() kwarg): http://pastebin.com/7Si6e3q1

It fails with this IPython trace: http://pastebin.com/5SFZnXiU

This is some related debugger output: http://pastebin.com/Veb7n9a7

I can link you my exact libio.h file, but unfortunately I don't know what it looks like after pycparser's pre processor call.

Any thoughts? (Is it possible to at least make the parser print which line causes the syntax error, since it keeps the coordinate?)

@dubslow dubslow changed the title Parse error of unknown origin NotImplementedError of unknown origin Aug 29, 2015
@inducer
Copy link
Owner

inducer commented Aug 29, 2015

It looks like the source code has an __attribute__(stuff) somewhere in a function declaration where it's not yet supported. I'd be happy to take a patch.

@dubslow
Copy link
Author

dubslow commented Aug 29, 2015

I understand nothing about parsing unfortunately

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