Is there a C header parser tool for wrapper genera

2020-07-14 05:39发布

I need to write a few c header wrappers for a new programming language and would like something like gccxml but without the full dependency on gcc and the problems it gives on a windows system.

Just needs to read C not C++. Output in any format is okay as long it is fully documented.

Need it for Curl, SQLite, GTK2, SDL, OpenGL, Win32 API and C posix API's on Linux/Solaris/FreeBSD/MacOSX.

3条回答
Lonely孤独者°
2楼-- · 2020-07-14 06:15

You may like pycparser in Python. Used in CFFI and other awesome projects.

查看更多
我想做一个坏孩纸
3楼-- · 2020-07-14 06:22

VivaCore is very cool. Have you tried SWIG the wikipedia page on ffi has some good links too. I think there is a MSVC codedom example that does C also.

查看更多
姐就是有狂的资本
4楼-- · 2020-07-14 06:24

See our SD C Front End for DMS. Full C parsing, symbol table construction, post parsing dump of any information you like. Can dump code and symbol tables in XML format.

查看更多
登录 后发表回答