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:
and its dependencies
When I use the ASTRewrite class, I get unwanted depencies to (for example)
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.