[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] CDT Parser usage for parsing a C file

Dear All,

I have couple of issues regarding the usage of CDT parser in a Java application, which I am currently working on. Please go through the below points,

1. As per my understanding, it is possible to make use of CDT parser feature to parse an input C file and get the AST structure ready (which I can obviously make use of later). But, I am not able to search and find out, which classes to integrate into my Java application to do this job? I would appreciate the help from the CDT team, if they can guide me over this.

Basically, I need to restrict the usage of CDT parser to an extent where I make available a C file to the parser and get an output in the form AST populated with the information from the C file. I tried using Eclipse Ganymade and respective CDT features & plug-in. Somehow I feel I am missing something. Do I need to use Eclipse C/C++ IDE (available as a download on the Eclipse website) for doing this?

2. I am not so familiar with the intracacies of Eclipse environment, specially plug-ins usage into eclipse. I would appreciate the help from the team in clarifying the doubt of how exactly CDT should be used in a case mentioned above?

Would appreciate your reply.

Thanks & Regards,
Sakar Kalkotwar