eliben / pycparser

:snake: Complete C99 parser in pure Python
Other
3.26k stars 612 forks source link

Comments, directive, unknown function, and variable work around #535

Closed aerah8 closed 7 months ago

aerah8 commented 7 months ago

The main purpose of the preprocessing file is to get rid of all comments and work around directive files. This increases the versatility of the parser function.

eliben commented 7 months ago

Thanks, but I'm not going to add preprocessing to pycparser at this time. It's a much more difficult problem than a simple patch could handle. pycparser requires preprocessed code: https://github.com/eliben/pycparser?tab=readme-ov-file#interaction-with-the-c-preprocessor