Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Using Eclipse CDT's Parser in a Standalone RefactoringTool

If you want to work with the CDT parser, I recommend to use CDT projects for that (Why would you not do so?).
However, it is possible to use the parser on files outside of CDT projects. 
 
 
The parser can create abstract syntax trees (interface IASTTranslationUnit) and can be used to populate an index (interface IIndex). You will have to decide by yourself whether or not the CDT parser meets your needs.
 
Markus.


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of pingu219@xxxxxxxxx
Sent: Monday, April 14, 2008 10:30 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Using Eclipse CDT's Parser in a Standalone RefactoringTool
Importance: Low

Hi I'm currently an student doing a project which involves creating a program capable of representing a C project (files, functions...etc) visually and which will allow the user to perform simple higher as well as lower-level refactorings via the graphical interface itself. I originally intended to use the GCC translation framework available with ANTLR for the job of parsing the C files and source code in but someone else recommended that I perhaps consider Eclipse CDT's parser instead.

I was wondering if I could get some feedback as to whether the CDT parser would be well suited for a project of this nature. Ideally the parser would be capable of catering for preprocessor directives, be able to read in different C files as a single project and perform code transformations with ease. It would also be much appreciated if I could perhaps be pointed to other standalone projects, examples which use the CDT parser in this manner or maybe even tutorials if they exist. Thanks alot in advance

Cheers


Back to the top