PEP 652: Maintaining the Stable ABI

Thanks for the input!

I want to stay away from using external Python libraries to build CPython, so for me, pycparser is out. Otherwise it’s a great library!

I’d be happy to add a hand-rolled pegen-based parser if/when pegen is more generally usable. So far, it’s not – it’s a CPython implementation detail. In an ideal world, I would help improve the situation, but while I enjoy yak-shaving, I need to limit it to get stuff done.
Still, this would be a custom parser. A subset of C with extra additions is still a bespoke language; I don’t see the advantage here.

I’d be more comfortable automatically generating a C header.