tiefeng wu <iceberg...@gmail.com> wrote:
>  I need to parse c/cpp source files, one requirement is to extract
>  included header file name.

If you are serious about parsing C code then you'll want to
investigate gcc-xml

http://www.gccxml.org/HTML/Index.html

This runs the gcc frontend over the code but instead of producing an
object file, it produces a machine readable xml file describing the
source.

It is used by h2xml.py / xml2py.py to make ctypes header file
automatically.

-- 
Nick Craig-Wood <n...@craig-wood.com> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to