Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ parser stability & completeness
C++ parser stability & completeness [message #57656] Fri, 10 January 2003 13:14 Go to next message
Eclipse UserFriend
Originally posted by: scott.finnie.virgin.net

[Apologies if this is answered elsewhere, pointers appreciated if so].

I'm considering some C++ analysis tools, so require access to parse
trees --> am interested in whether the cdt parser will fit the bill.

For example,

. does it parse all c++ (e.g. method bodies as well as declarations,
templates)?
. Is the parse tree structure documented? If so, where?
. How to access the parse tree? (e.g. API?)
. any platform limitations? (e.g. windows-isms not handled?)

Many thanks.

- Scott.
Re: C++ parser stability & completeness [message #57681 is a reply to message #57656] Fri, 10 January 2003 13:17 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Hi!

My small experiments in this sphere revealed that C++ code parsing in CDT
is not very complicated and I think there are no any documentation on it.
Source code you can find in org.eclipse.cdt.core plugin in 2 packages:
org.eclipse.cdt.internal.parser and
org.eclipse.cdt.internal.parser.generated

May I be curious about your interest in C++ analysis tools if it is not a
secret?

Igor S. Zamyatin
Interstron Ltd.


> [Apologies if this is answered elsewhere, pointers appreciated if so].

> I'm considering some C++ analysis tools, so require access to parse
> trees --> am interested in whether the cdt parser will fit the bill.

> For example,

> . does it parse all c++ (e.g. method bodies as well as declarations,
> templates)?
> . Is the parse tree structure documented? If so, where?
> . How to access the parse tree? (e.g. API?)
> . any platform limitations? (e.g. windows-isms not handled?)

> Many thanks.

> - Scott.
Re: C++ parser stability & completeness [message #57813 is a reply to message #57681] Sat, 11 January 2003 18:20 Go to previous messageGo to next message
Michael Schneider is currently offline Michael SchneiderFriend
Messages: 3
Registered: July 2009
Junior Member
If you need more data you may want to look
at gccxml http://www.gccxml.org

this is a gcc hack that dumps xml for the
the symbols in the code from the symbol table

Mike

"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:avmh5j$vdo$1@rogue.oti.com...
>
> Hi!
>
> My small experiments in this sphere revealed that C++ code parsing in CDT
> is not very complicated and I think there are no any documentation on it.
> Source code you can find in org.eclipse.cdt.core plugin in 2 packages:
> org.eclipse.cdt.internal.parser and
> org.eclipse.cdt.internal.parser.generated
>
> May I be curious about your interest in C++ analysis tools if it is not a
> secret?
>
> Igor S. Zamyatin
> Interstron Ltd.
>
>
> > [Apologies if this is answered elsewhere, pointers appreciated if so].
>
> > I'm considering some C++ analysis tools, so require access to parse
> > trees --> am interested in whether the cdt parser will fit the bill.
>
> > For example,
>
> > . does it parse all c++ (e.g. method bodies as well as declarations,
> > templates)?
> > . Is the parse tree structure documented? If so, where?
> > . How to access the parse tree? (e.g. API?)
> > . any platform limitations? (e.g. windows-isms not handled?)
>
> > Many thanks.
>
> > - Scott.
>
>
>
>
Re: C++ parser stability & completeness [message #61089 is a reply to message #57656] Tue, 04 February 2003 01:02 Go to previous message
Eclipse UserFriend
Originally posted by: alain.no.spam

Scott Finnie wrote:

> [Apologies if this is answered elsewhere, pointers appreciated if so].

> I'm considering some C++ analysis tools, so require access to parse
> trees --> am interested in whether the cdt parser will fit the bill.

> For example,

> . does it parse all c++ (e.g. method bodies as well as declarations,
> templates)?
> . Is the parse tree structure documented? If so, where?
> . How to access the parse tree? (e.g. API?)
> . any platform limitations? (e.g. windows-isms not handled?)

At this point, no.
The C/C++ parser in the CDT is incomplete, the first try
was/is base on the public one available in JavaCC.

> Many thanks.

> - Scott.
Previous Topic:Code Completion on W2K
Next Topic:cygwin update...build command
Goto Forum:
  


Current Time: Mon Aug 19 04:28:04 GMT 2024

Powered by FUDForum. Page generated in 0.04756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top