eliben / pycparser

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

c_generator returning a dict mapping the nodes to their position in the resulting code #509

Closed FlorianDyck closed 1 year ago

FlorianDyck commented 1 year ago

I've built a c_generator returning a dict mapping the nodes to their position in the resulting code for a project where I needed the feature. If you are interested, I could create a pull request. If so, please decide wether this should replace the current c_generator.

eliben commented 1 year ago

The C generator part of pycparser is more of a demonstration than something I'd expect to be industrial-strength. If you can build alternative generators based on pycparser, that's great - by design.