Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT Parser: Statements?
CDT Parser: Statements? [message #82741] Thu, 09 October 2003 23:04 Go to next message
Adam Murray is currently offline Adam Murray
Messages: 1
Registered: July 2009
Junior Member
Does the current CDT parser parse down to the level of individual
statements and their tokens? I've been playing around with it and it looks
like I can only get to the class/function declaration level. Given an
IASTFunction node, is there a way to get at nodes within the function
body?
Re: CDT Parser: Statements? [message #82748 is a reply to message #82741] Fri, 10 October 2003 14:31 Go to previous message
John Camelon is currently offline John Camelon
Messages: 242
Registered: July 2009
Senior Member
There are no AST nodes for statements. We parse through the funciton bodies
and provide callbacks on references only.
Even if we did have AST Statements, we wouldn't be able to attach them to
the IASTFunction/IASTMethod as we would likely run out of memory on large
files with large number of inclusions.
That is why the interface between the parser and its clients is a callback
requestor interface, so that we can drop unnecessary constructs after they
are called back upon.

If this is something that you require, please raise an enhancement request
in bugzilla, setting the Component to CDT-Parser.

"Adam" <adam@fortifysoftware.com> wrote in message
news:bm4phj$ggn$1@eclipse.org...
> Does the current CDT parser parse down to the level of individual
> statements and their tokens? I've been playing around with it and it looks
> like I can only get to the class/function declaration level. Given an
> IASTFunction node, is there a way to get at nodes within the function
> body?
>
Previous Topic:Problem building in Eclipse
Next Topic:content assist vs. The Inclusion Guards
Goto Forum:
  


Current Time: Fri Oct 24 14:59:20 GMT 2014

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

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