From: Yoann Padioleau <padator@wanadoo.fr>
To: guillaume.yziquel@citycable.ch
Cc: Kihong Heo <khheo@ropas.snu.ac.kr>, caml-list@inria.fr
Subject: Re: [Caml-list] C++ parser
Date: Sun, 17 Jan 2010 11:16:23 -0800 [thread overview]
Message-ID: <B09C3A42-0AD5-4882-A6BA-95E6767FB0CB@wanadoo.fr> (raw)
In-Reply-To: <4B5337D5.7010003@citycable.ch>
[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]
On Jan 17, 2010, at 8:16 AM, Guillaume Yziquel wrote:
>
> Kihong Heo a écrit :
>> Dear all.
>> Is there anybody knowing about existing C++ parser that is not so big?
>> I've already know EDG and ELSA.
>> But they are so big and hard to see. I don't want a perfect C++ parser.
>> If it can parse common and simple C++, that's OK.
>
> The perfect C++ parser: GCC XML.
From the FAQ they say:
"Why are C++ function bodies not dumped in XML?
The original sponsors of the project had no need for function bodies. So far the authors have not had time or funding to implement the support. Contact the mailing list if you are interested in contributing this support or providing funding to have it implemented. "
is it still true ?
Also do they maintain comments, space, positions, cpp directives ?
If you need to do source-to-source transformation, e.g. refactoring,
you need those things.
> I thing that there is an OCaml binding to it.
>
is it this one?:
http://qt-caml.crapulion.org/trac/browser/trunk/src/gccxml/lib
> Otherwise, depending on what you want to do, there is Swig. It parses only C++ declarations.
>
>> I need your advice.
>
> For a new project, I'd use GCC XML.
>
>> Thank you.
>> --
>> Kihong Heo.
>
> All the best,
>
> --
> Guillaume Yziquel
> http://yziquel.homelinux.org/
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 2816 bytes --]
prev parent reply other threads:[~2010-01-17 19:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 11:36 Kihong Heo
2010-01-14 19:58 ` [Caml-list] " Yoann Padioleau
2010-01-17 16:16 ` Guillaume Yziquel
2010-01-17 19:15 ` Basile STARYNKEVITCH
2010-01-17 19:16 ` Yoann Padioleau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B09C3A42-0AD5-4882-A6BA-95E6767FB0CB@wanadoo.fr \
--to=padator@wanadoo.fr \
--cc=caml-list@inria.fr \
--cc=guillaume.yziquel@citycable.ch \
--cc=khheo@ropas.snu.ac.kr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox