[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] AST problem with CDT
|
It is definitely possible to build CDT AST based on a JDT one and then use that AST to generate code. Please keep in mind though that even very similar C++ and Java constructs are represented quite differently in CDT and JDT ASTs. You can take a look at CDT refactoring code under org.eclipse.cdt.internal.core.dom.rewrite, org.eclipse.cdt/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/refactoring and org.eclipse.cdt/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring.
-sergey
On Mon, Mar 12, 2012 at 11:42 PM, Steven
<zhoubing19820720@xxxxxxxxxxx> wrote:
Hi:
I have been working with a eclipse tool which
could parse java source file into ast and translate ast into other
programming language(such as c/c++) .And what I just want to know is if there is
any possibility to construct a ast manually with the information I get from java
ast?If Yes,could you give the example or any references for me to study?
Thax a lot.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev