Thursday, March 7, 2019

Re: [Discuss-gnuradio] GSoC project idea discussion

A nice design could also abstract the implementation of the code parsing tool (clang vs. pygccxml) and use either one under the hood.

-- M

On Thu, Mar 7, 2019 at 7:07 AM Arpit Gupta <guptarpit1997@gmail.com> wrote:
Hi,
As I'm working on block header parsing tool as my GSoC project, I would like to have an opinion on pygccxml, which is another C++ file parsing tool in python and is working quite well on parsing GNU Radio header files because of their brilliant, elegant yet simple and most importantly their generic structure. Also, pygccxml parser code itself is easy to visualize.
libclang in python does a pretty good job in parsing all the header files, but it parses all the include files, and also the standard C++ ones because of it's compiler level parsing, which is not required, at least in our particular case. Whereas in pygccxml, it only parses that particular file, and so the included non-standard C++ header files particular to GNU Radio can be parsed by recursively opening them, parsing them using the same tool till we reach all the standard C++ header files thus leaving out all the standard C++ ones.
So, I would definitely like to have an opinion on this.
Thank you

Best regards,
Arpit Gupta

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment