Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Write access to AST in stand-alone program
Write access to AST in stand-alone program [message #1072717] Tue, 23 July 2013 11:07 Go to next message
Markus Ritzer is currently offline Markus RitzerFriend
Messages: 2
Registered: July 2013
Junior Member
Hi!

I'm using Eclipse CDT to parse C code and get an AST.
This works fine as long as I do read accesses on the AST.

Now I want to modify something (code coverage instrumentation) and perform a write access. I know that this is possible using the ASTRewrite class, but this class has lots of dependencies (Eclipse refactoring framework).

My program is a stand-alone java program (intended to be invoked from the command line) using only the following JAR files from Eclipse/CDT:
org.eclipse.cdt.core_5.4.0.201206111645.jar

and its dependencies
org.eclipse.equinox.common_3.6.0.v20100503.jar
org.eclipse.equinox.registry_3.5.0.v20100503.jar
com.ibm.icu_4.2.1.v20100412.jar


When I use the ASTRewrite class, I get unwanted depencies to (for example)
org.eclipse.ltk.core.refactoring.Change
which has lots of dependencies itself.

My question is: Is there a way to modify the AST without having to include dozens of Eclipse JAR files?
As said above, the tool should be a samll command-line tool.
Re: Write access to AST in stand-alone program [message #1100608 is a reply to message #1072717] Tue, 03 September 2013 10:37 Go to previous message
Markus Ritzer is currently offline Markus RitzerFriend
Messages: 2
Registered: July 2013
Junior Member
Anybody?
Previous Topic:Start Matlab from Eclipse gives Program is not a recognized executable.
Next Topic:debug java and ndk both
Goto Forum:
  


Current Time: Fri Apr 26 06:05:24 GMT 2024

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

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

Back to the top