Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » about CDT Parser
about CDT Parser [message #67488] Thu, 24 April 2003 23:29 Go to next message
Hong Deng is currently offline Hong DengFriend
Messages: 15
Registered: July 2009
Junior Member
Hello Folks,

I have some questions about CDT parser.

1. where is the directory of Parser source code?
Under CVS org.eclipse.cdt.core, there are 2 directories, Parser and
Src--org/eclipse/cdt/internal/core/parser
because the contents of source code under the two are difference, could
you tell me about them?
2. where is the Parser source code being used ?
Because the parser is part of the CDT compiler, as I understand, inside
CBuilder,
Process p = launcher.execute(makepath, userArgs, env, workingDirectory);

here, the builder is called, so, it is a seperate process, and Parser
will be in the compiler.
when I use MingW, the parser would be used in the MingW compiler, so, in
org.eclipse.cdt.core, the parser is for what? and where is it used?

Thank you very much!

QHmd.
Re: about CDT Parser [message #67509 is a reply to message #67488] Fri, 25 April 2003 04:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

"Qhmd" <hmdeng6@yahoo.com> schrieb im Newsbeitrag
news:3EA87374.319E814C@yahoo.com...

> when I use MingW, the parser would be used in the MingW compiler, so, in
> org.eclipse.cdt.core, the parser is for what? and where is it used?

To build a DOM of C/C++ files for things like the Outline View, Content
Assist, Refactoring ...
MingW instead is only for compiling source files.

Cu, Gunnar
Re: about CDT Parser [message #67982 is a reply to message #67488] Wed, 30 April 2003 19:37 Go to previous message
John Camelon is currently offline John CamelonFriend
Messages: 50
Registered: July 2009
Member
There are currently 2 parsers included in the HEAD/1_1 source tree.

org.eclipse.cdt.internal.core.parser is the new hand-coded parser which is
used in the Code Model, Compare feature and Outline View. This parser is
used by default.
the other parser is the old parser, which can be turned on through
Preferences --> C/C++.

the old parser is still available for support purposes only and will be
removed for the next release after 1.1.

JohnC


"Qhmd" <hmdeng6@yahoo.com> wrote in message
news:3EA87374.319E814C@yahoo.com...
> Hello Folks,
>
> I have some questions about CDT parser.
>
> 1. where is the directory of Parser source code?
> Under CVS org.eclipse.cdt.core, there are 2 directories, Parser and
> Src--org/eclipse/cdt/internal/core/parser
> because the contents of source code under the two are difference, could
> you tell me about them?
> 2. where is the Parser source code being used ?
> Because the parser is part of the CDT compiler, as I understand, inside
> CBuilder,
> Process p = launcher.execute(makepath, userArgs, env, workingDirectory);
>
> here, the builder is called, so, it is a seperate process, and Parser
> will be in the compiler.
> when I use MingW, the parser would be used in the MingW compiler, so, in
> org.eclipse.cdt.core, the parser is for what? and where is it used?
>
> Thank you very much!
>
> QHmd.
>
Previous Topic:CDT 1.1 builds available
Next Topic:about binary parser
Goto Forum:
  


Current Time: Fri Jul 19 12:15:12 GMT 2024

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

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

Back to the top