[GCC-XML] c++ parsing

Roman Yakovenko roman.yakovenko at gmail.com
Wed Aug 2 07:18:31 EDT 2006


On 8/2/06, Roberto Gori <r.gori at cineca.it> wrote:
>
>
>
> Dear gccxml team,
>
> i need to parse a generic c++ function arguments list like this:
>
> int a, char b,  void (*f)(int), double g[], float c=5
>
> and i would like to write a function to obtain the names of the identifiers
> (a, b, f, g, c) and eventually  the corresponding types also.
>
> i've puzzled for long time with this problem without finding a good
> solution.
>
> Could you give me some advice, please?

Take a look on pygccxml project(
http://language-binding.net/pygccxml/pygccxml.html )
It will help you to evalutae quickly whether GCC-XML is the right
tool, for what you are
trying to do.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the gccxml mailing list