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.