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?)
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'sparse_filewith theparser=GnuCParser()kwarg): http://pastebin.com/7Si6e3q1It 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?)