ned14 / pcpp

A C99 preprocessor written in pure Python
Other
215 stars 39 forks source link

Running the preprocessor causes differences in the repository #55

Closed Sei-Lisa closed 3 years ago

Sei-Lisa commented 3 years ago

The file pcpp/parsetab.py is re-generated when the preprocessor is run under Python 2. The generated version does not match the version present in the repository, causing differences in git diff.

This is being a problem for my project because pcpp is included as a git submodule, and it is marked as dirty.

ned14 commented 3 years ago

Confirmed. Sorry about that, the ply documentation says that should never occur.

ned14 commented 3 years ago

Hopefully fixed now. Let me know if it is not fixed. Thanks for the BR!

Sei-Lisa commented 3 years ago

Thanks, it appears to work now. I can't help wondering, if the file is re-generated when run, can't it be just removed from the repository, letting the installation generate it?

ned14 commented 3 years ago

For those who run only from optimised bytecode python, or those using pypy or other such JIT technologies, self generation is not permitted. You can probably guess at what I want to get working next now that we no longer use eval().