Progress migrating cffi and pycparser to libclang
Etienne Robillard
tkadm30 at yandex.com
Thu Jan 4 04:50:11 EST 2018
Hi,
I will be creating a repository for this:
https://bitbucket.org/tkadm30/cffi-libclang
The goal is to generate a AST object from a C header by preprocessing
with clang -E then compile the python bindings with CFFI...
ffi.cdef(open('uwsgi.h').read()) # <-- XXX need to modify internal
parsing code to use clang.cindex!
ffi.dlopen('/usr/local/lib/libuwsgi.so')
Right now the parsing of the C source file is done by pycparser, but i
would like to use the clang.cindex module.
What do you think?
Etienne
--
Etienne Robillard
tkadm30 at yandex.com
https://www.isotopesoftware.ca/
More information about the Python-list
mailing list