Hacker News new | ask | show | jobs
by anqurvanillapy 475 days ago
I love your gradual approach pretty much. It sounds like gradual typing but not just the typing part.

I used to make many tools with libclang Python bindings to automate some chores of refactoring. I don't remember if one could expand the macros using it, and I was told that lexer and preprocessor are messed together in Clang. So it should be quite hard to extend the existing framework.

I would definitely go into this direction, but for now it just looks like some final boss, let me finish some early quests.

1 comments

I'd recommend using goblint (https://github.com/goblint) as a starting point, rather than Clang.